From 3724833dd7ecd8612e54d0932d0ed9e31ab9a0f1 Mon Sep 17 00:00:00 2001 From: Matthew Salt Date: Tue, 19 Mar 2024 08:52:05 +0000 Subject: [PATCH] Show log(x).since combination in README Signed-off-by: Matthew Salt --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 64f05cac..4f27cfee 100644 --- a/README.md +++ b/README.md @@ -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')