aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorkuba-- <kuba@sourced.tech>2019-01-03 22:47:04 +0100
committerkuba-- <kuba@sourced.tech>2019-01-07 08:52:54 +0100
commit3180dff8c5618b2e146a7fb4ac36be10851c86cc (patch)
tree88ded2ac78340fc8c4a022a90e6ea3d5de34259a /options.go
parent791aea319719ee757cb862e83ec43b25113de2c1 (diff)
downloadgo-git-3180dff8c5618b2e146a7fb4ac36be10851c86cc.tar.gz
Implement git log --all
Signed-off-by: kuba-- <kuba@sourced.tech>
Diffstat (limited to 'options.go')
-rw-r--r--options.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/options.go b/options.go
index 5d10a88..ed7689a 100644
--- a/options.go
+++ b/options.go
@@ -335,6 +335,11 @@ type LogOptions struct {
// Show only those commits in which the specified file was inserted/updated.
// It is equivalent to running `git log -- <file-name>`.
FileName *string
+
+ // Pretend as if all the refs in refs/, along with HEAD, are listed on the command line as <commit>.
+ // It is equivalent to running `git log --all`.
+ // If set on true, the From option will be ignored.
+ All bool
}
var (