Move all git prompt logic to C #15
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently the
git-prompt
C program only parses the output ofgit status --porcelain
leaving a large amount of logic up to zsh script to handle coloroutput. This was done to avoid writing raw escape sequences however
git-prompt
could easily output zsh syntax for outputting color e.g.
%{%B%F{2}%}✓%{%f%b%}
which could then be interpreted by zsh to perform the colorizing.
Additionally, running
git-prompt
could then become unconditional, if there isno git repository then no output would be provided.
Fixed in
5f2c5b58da
.