kubicek-grit 1.1.1 → 1.1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/grit/git-ruby.rb +1 -17
- data/lib/grit/git.rb +4 -0
- metadata +1 -1
data/lib/grit/git-ruby.rb
CHANGED
@@ -46,23 +46,7 @@ module Grit
|
|
46
46
|
def rev_list(options, ref = 'master')
|
47
47
|
options.delete(:skip) if options[:skip].to_i == 0
|
48
48
|
allowed_options = [:max_count, :since, :until, :pretty] # this is all I can do right now
|
49
|
-
|
50
|
-
return method_missing('rev-list', options, ref)
|
51
|
-
elsif (options.size == 0)
|
52
|
-
# pure rev-list
|
53
|
-
begin
|
54
|
-
return file_index.commits_from(rev_parse({}, ref)).join("\n") + "\n"
|
55
|
-
rescue
|
56
|
-
return method_missing('rev-list', options, ref)
|
57
|
-
end
|
58
|
-
else
|
59
|
-
aref = rev_parse({}, ref)
|
60
|
-
if aref.is_a? Array
|
61
|
-
return method_missing('rev-list', options, ref)
|
62
|
-
else
|
63
|
-
return try_run { ruby_git.rev_list(aref, options) }
|
64
|
-
end
|
65
|
-
end
|
49
|
+
return method_missing('rev-list', options, ref)
|
66
50
|
end
|
67
51
|
|
68
52
|
def rev_parse(options, string)
|
data/lib/grit/git.rb
CHANGED
@@ -120,6 +120,8 @@ module Grit
|
|
120
120
|
if opt.to_s.size == 1
|
121
121
|
if options[opt] == true
|
122
122
|
args << "-#{opt}"
|
123
|
+
elsif options[opt] == nil
|
124
|
+
next
|
123
125
|
else
|
124
126
|
val = options.delete(opt)
|
125
127
|
args << "-#{opt.to_s} '#{e(val)}'"
|
@@ -127,6 +129,8 @@ module Grit
|
|
127
129
|
else
|
128
130
|
if options[opt] == true
|
129
131
|
args << "--#{opt.to_s.gsub(/_/, '-')}"
|
132
|
+
elsif options[opt] == nil
|
133
|
+
next
|
130
134
|
else
|
131
135
|
val = options.delete(opt)
|
132
136
|
args << "--#{opt.to_s.gsub(/_/, '-')}='#{e(val)}'"
|