1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

add some config

This commit is contained in:
Jesse Duffield
2021-11-02 20:05:23 +11:00
parent 802cfb1a04
commit f6ec7babf5
5 changed files with 58 additions and 7 deletions

View File

@ -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,