arl / gitmux

:computer: Git in your tmux status bar
MIT License
630 stars 24 forks source link

feat: adds option to hide clean flag #92

Closed joshmedeski closed 1 year ago

joshmedeski commented 1 year ago

Purpose

Adds the option for a user to hide the clean flag. I, personally, would rather not see anything as an indicator that everything is clean.

Approach

Add a hide_clean option that defaults to false and when set to true will not render the clean flag.

arl commented 1 year ago

Thanks @joshmedeski Can you add some test please? No need to be fancy, just a single test case showing off the feature. Many examples are https://github.com/arl/gitmux/blob/main/tmux/formater_test.go

joshmedeski commented 1 year ago

All done, thanks :)