1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-14 11:23:09 +02:00
lazygit/pkg/commands
Stefan Haller a8aeadfdb7 Always show branch heads in diff pane
The first line of the diff pane would show branch heads (e.g.

  commit dd9100ccc8b69a8b14b21a84e34854b5acfb871a (mybranch, origin/mybranch)

only when a pager is used. The reason is that the default of the --decorate
option to git show is "auto", which means to show the decoration only when
output goes to a tty. Lazygit uses a pty only when a pager is used, so the
decoration wouldn't show when no pager is used.

Since the branch head annotation is useful and we always want to see it, force
it by explicitly passing --decorate.
2023-06-28 09:44:06 +02:00
..
git_commands Always show branch heads in diff pane 2023-06-28 09:44:06 +02:00
git_config remove deprecated calls 2022-09-17 15:10:41 -07:00
hosting_service Update gitlab commit URL to match new routing 2023-05-22 07:39:47 +03:30
models Insert fake todo entry for a conflicting commit that is being applied 2023-06-22 18:57:58 +02:00
oscommands Appease linter 2023-06-03 15:54:03 +10:00
patch Refactor interface for ApplyPatch 2023-05-20 20:54:39 +10:00
testdata
types/enums more refactoring 2022-01-04 09:07:15 +11:00
git_cmd_obj_builder.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
git_cmd_obj_runner.go fix(loaders/file.go): changed to ignore stderr when loading git status 2022-09-19 18:46:32 +09:00
git_test.go feat: add GitVersion struct 2022-12-30 20:01:14 +09:00
git.go show commits against branches 2023-06-01 19:21:24 +10:00