File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ def log_commits(opts = {})
80
80
def full_log_commits ( opts = { } )
81
81
arr_opts = [ '--pretty=raw' ]
82
82
arr_opts << "-#{ opts [ :count ] } " if opts [ :count ]
83
+ arr_opts << "--skip=\" #{ opts [ :skip ] } \" " if opts [ :skip ]
83
84
arr_opts << "--since=\" #{ opts [ :since ] } \" " if opts [ :since ] . is_a? String
84
85
arr_opts << "--until=\" #{ opts [ :until ] } \" " if opts [ :until ] . is_a? String
85
86
arr_opts << "--grep=\" #{ opts [ :grep ] } \" " if opts [ :grep ] . is_a? String
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ class Log
11
11
@path = nil
12
12
@count = nil
13
13
@since = nil
14
+ @skip = nil
14
15
@until = nil
15
16
@between = nil
16
17
@@ -46,6 +47,12 @@ def path(path)
46
47
return self
47
48
end
48
49
50
+ def skip ( num )
51
+ dirty_log
52
+ @skip = num
53
+ return self
54
+ end
55
+
49
56
def since ( date )
50
57
dirty_log
51
58
@since = date
@@ -103,11 +110,11 @@ def check_log
103
110
def run_log
104
111
log = @base . lib . full_log_commits ( :count => @count , :object => @object ,
105
112
:path_limiter => @path , :since => @since ,
106
- :author => @author , :grep => @grep ,
113
+ :author => @author , :grep => @grep , :skip => @skip ,
107
114
:until => @until , :between => @between )
108
115
@commits = log . map { |c | Git ::Object ::Commit . new ( @base , c [ 'sha' ] , c ) }
109
116
end
110
117
111
118
end
112
119
113
- end
120
+ end
You can’t perform that action at this time.
0 commit comments