jesseduffield.lazygit/pkg/config
Jacob Bayer ed519488ea Make the refs shown by the commits view's whole-graph toggle configurable
The whole-graph toggle hardcoded `--all`, which means every ref in the
repo. That is more than most people want: agent harnesses write large
numbers of refs under refs/agents, and stashes are refs too, so both
flood the commits view and bury the commits the user actually cares
about. There was no way to narrow the set short of turning the toggle
off entirely.

Add `git.log.allRefsArgs`, the args spliced into `git log` in place of
`--all`. It defaults to `["--all"]`, so existing behaviour is unchanged,
and can be set to something narrower such as `["--branches",
"--remotes"]`, or to `--all` plus `--exclude` globs.

Args rather than a whole command, as `git.allBranchesLogCmds` takes:
that pane dumps raw output into the main view, whereas the commits view
parses `git log` output field by field, so the pretty format and the
other flags have to stay under lazygit's control.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-08 04:58:17 -04:00
..
app_config.go Move Github PR cache out of state.yml into a separate file 2026-08-02 19:09:22 +02:00
app_config_test.go Rework the custom pager config (rename to diff renderer) 2026-07-31 08:42:51 +02:00
config_default_platform.go Clean up build tags 2025-08-14 20:40:44 +02:00
config_linux.go Fix opening links containing ampersands (&) in WSL 2024-12-04 09:43:30 +01:00
config_windows.go Change OpenCommand to Open and OpenLinkCommand to OpenLink 2023-04-13 13:14:00 +02:00
diff_renderer_config_manager.go Rework the custom pager config (rename to diff renderer) 2026-07-31 08:42:51 +02:00
diff_renderer_config_manager_test.go Rework the custom pager config (rename to diff renderer) 2026-07-31 08:42:51 +02:00
dummies.go Move Github PR cache out of state.yml into a separate file 2026-08-02 19:09:22 +02:00
editor_presets.go Remove a few unnecessary parentheses 2026-08-13 20:40:11 +02:00
editor_presets_test.go Fix nvim-remote commands for fish shell 2025-04-27 20:12:11 +02:00
github_pull_request_cache.go Move Github PR cache out of state.yml into a separate file 2026-08-02 19:09:22 +02:00
github_pull_request_cache_test.go Move Github PR cache out of state.yml into a separate file 2026-08-02 19:09:22 +02:00
keybinding.go Fold legacy quit-alt1 into the multi-key quit binding 2026-05-25 15:32:47 +02:00
keybinding_test.go Fold legacy quit-alt1 into the multi-key quit binding 2026-05-25 15:32:47 +02:00
keynames.go Convert keybinding fields to Keybinding 2026-05-25 15:32:47 +02:00
keynames_test.go Change keybinding syntax to spell out full modifier names, and use + instead of - 2026-04-30 22:38:53 +02:00
side_panel.go Add the gui.sidePanels config option 2026-06-23 14:15:18 +02:00
user_config.go Make the refs shown by the commits view's whole-graph toggle configurable 2026-09-08 04:58:17 -04:00
user_config_validation.go Validate the context names in the "context" field of custom commands 2026-09-03 21:07:32 +02:00
user_config_validation_test.go Validate the context names in the "context" field of custom commands 2026-09-03 21:07:32 +02:00