Adding swap_divergence flag#98
Conversation
Thanks for the review! Yes, I will add a test and also update README to make the option more visible. |
Of course! Yes good catch about the readme, that'd be nice. |
arl
left a comment
There was a problem hiding this comment.
LGTM thanks for the extensive testing 👍
But i forgot to ask you, sorry my bad, can you add swap_divergence: false with a doc string to the default config in gitmux.yml (at project root).
Absolutely, will do |
Purpose
Adding
swap_divergenceoption to allow users to customize whether "upstream behind count" should be displayed first or "upstream ahead count".Main motivation behind this was that I use
gitmuxin conjunction withlazygit. Lazygit's branch menu always showsaheadcount first followed bybehindcount. I thought it'd be nice to be able to sync them up.swap_divergence: false:swap_divergence: true:Approach
Added
swap_divergenceboolean flag for yaml file. Instead of appending to the returned stringsright away, savingaheadandbehindstrings in separate vars then appending to original stringsbased onswap_divergenceflag.Thank you!