Skip to content

Commit e4d6a77

Browse files
committed
Show log(x).since combination in README
Signed-off-by: James Couball <jcouball@yahoo.com>
1 parent 8df062d commit e4d6a77

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,12 @@ g.index.writable?
244244
g.repo
245245
g.dir
246246

247-
g.log # returns a Git::Log object, which is an Enumerator of Git::Commit objects
248-
g.log(200)
249-
g.log.since('2 weeks ago')
247+
# log - returns a Git::Log object, which is an Enumerator of Git::Commit objects
248+
# default configuration returns a max of 30 commits
249+
g.log
250+
g.log(200) # 200 most recent commits
251+
g.log.since('2 weeks ago') # default count of commits since 2 weeks ago.
252+
g.log(200).since('2 weeks ago') # commits since 2 weeks ago, limited to 200.
250253
g.log.between('v2.5', 'v2.6')
251254
g.log.each {|l| puts l.sha }
252255
g.gblob('v2.5:Makefile').log.since('2 weeks ago')

0 commit comments

Comments
 (0)