Skip to content

Commit

Permalink
Show log(x).since combination in README
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Salt <matthew.salt@gmail.com>
  • Loading branch information
mattsalt authored and jcouball committed Mar 19, 2024
1 parent b7a4a6d commit 3724833
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Expand Up @@ -244,9 +244,12 @@ g.index.writable?
g.repo
g.dir

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

0 comments on commit 3724833

Please sign in to comment.