Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Abbreviate commit hash in prompt during git rebase



Lawrence Velázquez wrote on Sun, Apr 17, 2022 at 16:08:34 -0400:
> That would also avoid coupling prompt appearance to the configuration
> of a separate piece of software, which is a notion that I like less
> and less the more I think about it.  I can easily imagine a user
> who might want to see full hashes in Git output but not in their
> prompt.

Agreed, but one could use the «command» style to have vcs_info invoke
Git as «git -c core.abbrev=42», in order to use core.abbrev as part of
the solution without this problem.

Cheers,

Daniel




Messages sorted by: Reverse Date, Date, Thread, Author