From 0bfe038a16551ede1d22bfb54f52c31b646a9e1a Mon Sep 17 00:00:00 2001 From: Nithin Gangadharan Date: Thu, 11 Oct 2018 14:17:08 +0530 Subject: Plumbing: object, Add support for Log with filenames. Fixes #826 (#979) plumbing: object, Add support for Log with filenames. Fixes #826 --- options.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'options.go') 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 -- `. + FileName *string } var ( -- cgit