clink-gitprompt icon indicating copy to clipboard operation
clink-gitprompt copied to clipboard

Color separation for dirty/clean working directory

Open samvasko opened this issue 11 years ago • 2 comments

It would be nice to have different color or some added character do denote dirty working directory.

samvasko avatar Apr 30 '14 13:04 samvasko

Detecting a dirty working directory is the most resource intensive operation in a git prompt. This script is already slow enough that I don't normally use it. I'm thinking that reworking it to use libgit2 should solve the performance problem. Even on Linux I've found zsh prompts to be unbearably slow with this functionality.

That said, I agree the option should be there, off by default.

djs avatar May 10 '14 09:05 djs

Perhaps if the detection of GIT directory would happen as suggested in #1, performance gain could be utilized to check if the directory is dirty/clean.

piotr-cz avatar Jul 31 '15 09:07 piotr-cz