jesseduffield.lazygit/pkg
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 Recognize a repo that has no work tree instead of bailing out 2026-08-08 11:15:01 +02:00
cheatsheet Fix linter warning about WriteString(fmt.Sprintf(...)) 2026-08-16 16:35:11 +02:00
commands Make the refs shown by the commits view's whole-graph toggle configurable 2026-09-08 04:58:17 -04:00
common Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
config Make the refs shown by the commits view's whole-graph toggle configurable 2026-09-08 04:58:17 -04:00
constants Adapt links 2026-07-31 08:42:51 +02:00
env Remember how to get back to a repo we entered a submodule from 2026-08-08 11:15:01 +02:00
fakes Modernize all codes 2025-11-15 10:46:23 +01:00
gocui Show the search status of what a re-rendered view now holds 2026-09-05 15:09:52 +02:00
gui Render the focused main view again while it is being searched 2026-09-05 15:09:52 +02:00
i18n Update translations from Crowdin 2026-09-05 16:46:18 +02:00
integration Render the focused main view again while it is being searched 2026-09-05 15:09:52 +02:00
jsonschema Fix use of reflect.Ptr 2026-08-16 16:35:11 +02:00
logs Separate the runs in the debug log with a blank line 2026-08-15 09:48:11 +02:00
snake Remove a few unnecessary parentheses 2026-08-13 20:40:11 +02:00
tasks Hold a task while a view is read to its end 2026-09-05 15:09:52 +02:00
theme Copy gocui files into lazygit repo under pkg/gocui 2026-04-30 14:29:08 +02:00
updates Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
utils Make StringStack generic 2026-08-08 11:15:01 +02:00