Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.47k stars 947 forks source link

vcs segment formats commit hash differently depending on the presence of tag #1204

Open romkatv opened 5 years ago

romkatv commented 5 years ago

Tested on master with the default config.

  1. cd into a git repo and detach head. You need to be on a revision that doesn't have tags on it.
  2. Observe how the commit hash looks like.
  3. git tag ohai
  4. Observe how the commit hash looks like.

Expected: 2 and 4 display the same commit hash. The only difference is that 4 also has a tag. Actual: 2 and 4 display different commit hashes.