mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 05:57:38 -04:00
gui.branchColors has been deprecated in favor of gui.branchColorPatterns since 0.44.0. We are about to move gui.branchColorPatterns into gui.theme, and the deprecated key would have to move along with it. Migrate it instead, so that we can remove it. gui.branchColors matched its keys against the part of a branch name before the first slash. The pattern ^<key>(/|$), with the key escaped, matches the same branches. If gui.branchColorPatterns is set, gui.branchColors has no effect; in that case the migration removes it. This check is done per file. So if the global config sets gui.branchColorPatterns and a repo config sets only gui.branchColors, the repo's colors were ignored so far, and now they apply. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>