mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
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> |
||
|---|---|---|
| .. | ||
| app_config.go | ||
| app_config_test.go | ||
| config_default_platform.go | ||
| config_linux.go | ||
| config_windows.go | ||
| diff_renderer_config_manager.go | ||
| diff_renderer_config_manager_test.go | ||
| dummies.go | ||
| editor_presets.go | ||
| editor_presets_test.go | ||
| github_pull_request_cache.go | ||
| github_pull_request_cache_test.go | ||
| keybinding.go | ||
| keybinding_test.go | ||
| keynames.go | ||
| keynames_test.go | ||
| side_panel.go | ||
| user_config.go | ||
| user_config_validation.go | ||
| user_config_validation_test.go | ||