Re: [PATCH] bash: Disable __git_ps1() if NO_GIT_PS1 is set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Øyvind A. Holm <sunny@xxxxxxxxxxx> wrote:

> If the user works in a big repository on a slow USB disk or network
> drive, __git_ps1() can result in a significant delay before the prompt
> reappears. By setting the environment variable NO_GIT_PS1 to a nonempty
> value, the use of __git_ps1() is temporarily disabled.

As far as I can tell, the only thing that makes the prompt slow in large
repositories is determining the dirty state; so instead of disabling the
prompt entirely, you may want to just unset GIT_PS1_SHOWDIRTYSTATE.
That way you still see which branch you are on, for example.


-- 
Stefan Haller
Berlin, Germany
http://www.haller-berlin.de/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]