diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2019-08-05 12:19:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-05 12:19:40 +0200 |
commit | 2661d86e26b9adb99ff37a82d6984030000639dd (patch) | |
tree | 3511322c02b495d4b06cdeacc669bbf822a4708c /options.go | |
parent | a0c8105a91910a022fe2b8d154f0a9ee777f7310 (diff) | |
parent | c7fc75ef6ebd7127e0918b1669d336ba39844201 (diff) | |
download | go-git-2661d86e26b9adb99ff37a82d6984030000639dd.tar.gz |
Merge pull request #1206 from knqyf263/feature/add_log_limiting
Add limiting options to git log
Diffstat (limited to 'options.go')
-rw-r--r-- | options.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -4,6 +4,7 @@ import ( "errors" "regexp" "strings" + "time" "golang.org/x/crypto/openpgp" "gopkg.in/src-d/go-git.v4/config" @@ -348,6 +349,14 @@ type LogOptions struct { // It is equivalent to running `git log --all`. // If set on true, the From option will be ignored. All bool + + // Show commits more recent than a specific date. + // It is equivalent to running `git log --since <date>` or `git log --after <date>`. + Since *time.Time + + // Show commits older than a specific date. + // It is equivalent to running `git log --until <date>` or `git log --before <date>`. + Until *time.Time } var ( |