jaspernbrouwer / powerline-gitstatus

A Powerline segment for showing the status of a Git working copy
MIT License
383 stars 52 forks source link

Git tag abbrev option #33

Open kmoschcau opened 5 years ago

kmoschcau commented 5 years ago

Hi, recently my most recent git tag output started to include the entire output of git describe with commit distance and current commit hash. I am not sure if this was caused by the update in powerline-gitstatus or a change in git itself.

In any case, I would like to change it, so it only shows the tag name. I would like to make this configurable, because not everyone might want to see it like I do. I would like to create a pull request for this, but I can't decide on how to expose this functionality in the powerline config. There are several ways I could think of:

Independent from the way to add the option, I was also pondering whether one would just simply expose the --abbrev option argument to the user as a number, or to just expose a boolean, to pass the flag with 0 or not.

I would be happy for some advice and input, thank you in advance.