summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/loading_commits.go7
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,