lazygit/pkg/commands/git_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
..
bisect.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
bisect_info.go simplify 2022-03-24 20:14:41 +11:00
branch.go show commits against branches 2023-06-01 19:21:24 +10:00
branch_loader.go show commits against branches 2023-06-01 19:21:24 +10:00
branch_loader_test.go show commits against branches 2023-06-01 19:21:24 +10:00
branch_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
commit.go Always show branch heads in diff pane 2023-06-28 09:44:06 +02:00
commit_file_loader.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
commit_file_loader_test.go Merge loaders package into git_commands package 2022-11-14 18:11:45 +11:00
commit_loader.go Use remote upstreams of main branches to determine merged status of commits 2023-06-26 09:02:46 +02:00
commit_loader_test.go Use remote upstreams of main branches to determine merged status of commits 2023-06-26 09:02:46 +02:00
commit_test.go Always show branch heads in diff pane 2023-06-28 09:44:06 +02:00
common.go feat: add GitVersion struct 2022-12-30 20:01:14 +09:00
config.go restore field 2022-01-09 14:09:53 +11:00
custom.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
deps_test.go Refactor interface for ApplyPatch 2023-05-20 20:54:39 +10:00
diff.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
file.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
file_loader.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
file_loader_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
file_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
flow.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
flow_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
git_command_builder.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
git_command_builder_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
patch.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
patch_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
rebase.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
rebase_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
reflog_commit_loader.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
reflog_commit_loader_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
remote.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
remote_loader.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
stash.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
stash_loader.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
stash_loader_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
stash_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
status.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
submodule.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
sync.go Add --all to "git fetch" command when not fetching a specific remote 2023-06-01 10:13:14 +02:00
sync_test.go Add --all to "git fetch" command when not fetching a specific remote 2023-06-01 10:13:14 +02:00
tag.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
tag_loader.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
tag_loader_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
version.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
version_test.go feat: add GitVersion struct 2022-12-30 20:01:14 +09:00
working_tree.go Fix discard logic 2023-05-23 20:23:08 +10:00
working_tree_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00