mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 05:57:38 -04:00
If several patterns in gui.branchColorPatterns match a branch, the color it gets is picked at random, and it can change from one render to the next. The patterns are kept in a Go map, and Go randomizes the order in which a map is iterated. Keep the patterns in a list instead, in the order in which they are written, and let the first match win. If a repo's config file has patterns too, put them in front of those of the global config file, because they are more specific. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>