1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-10-19 08:09:21 +03:00

Cleanup: simplify git arguments for reflog loading

The combination of --abbrev=40 and %h can be shortened to %H.
This commit is contained in:
Stefan Haller
2025-07-11 17:19:14 +02:00
parent 8515c74722
commit 92b5bad29d
2 changed files with 7 additions and 8 deletions

View File

@@ -30,8 +30,7 @@ func (self *ReflogCommitLoader) GetReflogCommits(hashPool *utils.StringPool, las
cmdArgs := NewGitCmd("log").
Config("log.showSignature=false").
Arg("-g").
Arg("--abbrev=40").
Arg("--format=%h%x00%ct%x00%gs%x00%P").
Arg("--format=%H%x00%ct%x00%gs%x00%P").
ArgIf(filterAuthor != "", "--author="+filterAuthor).
ArgIf(filterPath != "", "--follow", "--", filterPath).
ToArgv()