push
travis-ci
1 of 1 new or added line in 1 file covered. (100.0%)
555 of 676 relevant lines covered (82.1%)
14.74 hits per line
1 |
module GitWrapper |
1✔ |
2 |
module Commands |
1✔ |
3 |
class Show < Git |
1✔ |
4 |
|
|
5 |
def file(file_name) |
1✔ |
6 |
@file = to_relative_path(file_name)
|
1✔ |
7 |
self
|
1✔ |
8 |
end
|
|
9 |
|
|
10 |
def commit(commit) |
1✔ |
11 |
@version = "#{commit}:" |
× |
12 |
self
|
× |
13 |
end
|
|
14 |
|
|
15 |
def base |
1✔ |
16 |
@version = ':1:' |
× |
17 |
self
|
× |
18 |
end
|
|
19 |
|
|
20 |
def mine |
1✔ |
21 |
@version = ':2:' |
× |
22 |
self
|
× |
23 |
end
|
|
24 |
|
|
25 |
def theirs |
1✔ |
26 |
@version = ':3:' |
× |
27 |
self
|
× |
28 |
end
|
|
29 |
|
|
30 |
def command |
1✔ |
31 |
"show #{@version ? @version : 'HEAD:'}\"#{@file}\""
|
2✔ |
32 |
end
|
|
33 |
|
|
34 |
def result |
1✔ |
35 |
output |
1✔ |
36 |
end
|
|
37 |
|
|
38 |
end
|
|
39 |
end
|
|
40 |
end
|