Skip to content

Commit 0b6f3c7

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

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
@@ -112,9 +112,12 @@ g.index.writable?
112112
g.repo
113113
g.dir
114114

115-
g.log # returns a Git::Log object, which is an Enumerator of Git::Commit objects
116-
g.log(200)
117-
g.log.since('2 weeks ago')
115+
# log - returns a Git::Log object, which is an Enumerator of Git::Commit objects
116+
# default configuration returns a max of 30 commits
117+
g.log
118+
g.log(200) # 200 most recent commits
119+
g.log.since('2 weeks ago') # default count of commits since 2 weeks ago.
120+
g.log(200).since('2 weeks ago') # commits since 2 weeks ago, limited to 200.
118121
g.log.between('v2.5', 'v2.6')
119122
g.log.each {|l| puts l.sha }
120123
g.gblob('v2.5:Makefile').log.since('2 weeks ago')

0 commit comments

Comments
 (0)