aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorNithin Gangadharan <nithin.linkin@gmail.com>2018-10-11 14:17:08 +0530
committerMáximo Cuadros <mcuadros@gmail.com>2018-10-11 10:47:08 +0200
commit0bfe038a16551ede1d22bfb54f52c31b646a9e1a (patch)
tree15a56ea438a779c88667bb6071bf4462eb4d1610 /options.go
parent299f583fdb7fd3501ba496fbf5f5c517d46efcc8 (diff)
downloadgo-git-0bfe038a16551ede1d22bfb54f52c31b646a9e1a.tar.gz
Plumbing: object, Add support for Log with filenames. Fixes #826 (#979)
plumbing: object, Add support for Log with filenames. Fixes #826
Diffstat (limited to 'options.go')
-rw-r--r--options.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/options.go b/options.go
index b572770..b8bc1e9 100644
--- a/options.go
+++ b/options.go
@@ -330,6 +330,10 @@ type LogOptions struct {
// set Order=LogOrderCommitterTime for ordering by committer time (more compatible with `git log`)
// set Order=LogOrderBSF for Breadth-first search
Order LogOrder
+
+ // Show only those commits in which the specified file was inserted/updated.
+ // It is equivalent to running `git log -- <file-name>`.
+ FileName *string
}
var (