mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-12 00:26:24 -04:00
Everything in performRefresh is meant to read as "if this scope was asked for, refresh it", with the scopes that always change together expanded into each other up front so that each check can name a single one. The commits and the branches were the exception: one condition asking for either of them refreshed both, so what that block does only followed from reading it together with the expansion at the top of the function. The rebase commits hung off the same condition as an else, even though it is the commits refresh they are an alternative to. Expand those two into each other like the other pairs, and give each of them a check of its own. They now capture their inputs separately, which is what every other scope has always done. The reflog stays with the branches rather than getting a check of its own, because sorting the branches by recency needs it loaded first. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| cheatsheet | ||
| commands | ||
| common | ||
| config | ||
| constants | ||
| env | ||
| fakes | ||
| gocui | ||
| gui | ||
| i18n | ||
| integration | ||
| jsonschema | ||
| logs | ||
| snake | ||
| tasks | ||
| theme | ||
| updates | ||
| utils | ||