1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-10-17 20:31:19 +03:00

Always append -- to git show command

It is good practice to use a -- argument even if no further arguments follow.
Doesn't really make a difference for this particular command though, I think.
This commit is contained in:
Stefan Haller
2025-06-01 20:25:05 +02:00
parent 33a4fdf0ee
commit e7c33a7a65
2 changed files with 7 additions and 6 deletions

View File

@@ -270,7 +270,8 @@ func (self *CommitCommands) ShowCmdObj(hash string, filterPath string) *oscomman
Arg(hash).
ArgIf(self.UserConfig().Git.IgnoreWhitespaceInDiffView, "--ignore-all-space").
Arg(fmt.Sprintf("--find-renames=%d%%", self.UserConfig().Git.RenameSimilarityThreshold)).
ArgIf(filterPath != "", "--", filterPath).
Arg("--").
ArgIf(filterPath != "", filterPath).
Dir(self.repoPaths.worktreePath).
ToArgv()