diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-11-02 20:05:23 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-11-05 07:58:21 +1100 |
commit | f6ec7babf55c4a43bc8048e8a84970a8de8250b9 (patch) | |
tree | ffbfe8d8085feac9c69d1c29a1e44eff8e8ddb3a /pkg/commands/loading_commits.go | |
parent | 802cfb1a0436568c72fc998249f10f8150b352a3 (diff) |
add some config
Diffstat (limited to 'pkg/commands/loading_commits.go')
-rw-r--r-- | pkg/commands/loading_commits.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/commands/loading_commits.go b/pkg/commands/loading_commits.go index 22f6db6d2..a9553c7c0 100644 --- a/pkg/commands/loading_commits.go +++ b/pkg/commands/loading_commits.go @@ -404,10 +404,15 @@ func (c *CommitListBuilder) getLogCmd(opts GetCommitsOptions) *exec.Cmd { filterFlag = fmt.Sprintf(" --follow -- %s", c.OSCommand.Quote(opts.FilterPath)) } + config := c.GitCommand.Config.GetUserConfig().Git.Log + + orderFlag := "--" + config.Order + return c.OSCommand.ExecutableFromString( fmt.Sprintf( - "git log --topo-order %s --oneline %s %s --abbrev=%d %s", + "git log %s %s --oneline %s %s --abbrev=%d %s", c.OSCommand.Quote(opts.RefName), + orderFlag, prettyFormat, limitFlag, 20, |