summaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorLibravatar Thomas Rast <trast@student.ethz.ch>2009-02-03 10:20:54 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-02-03 22:07:51 -0800
commit738a94a9f645a5f63fbccaab76d5e43a97e53d78 (patch)
treea52befa2e211101cc13d2f4803e6f47fbff36b5d /strbuf.h
parenttests: fix test_commit() for case insensitive filesystems (diff)
downloadtgif-738a94a9f645a5f63fbccaab76d5e43a97e53d78.tar.xz
bash: offer to show (un)staged changes
Add a bit of code to __git_ps1 that lets it append '*' to the branch name if there are any unstaged changes, and '+' if there are any staged changes. Since this is a rather expensive operation and will force a lot of data into the cache whenever you first enter a repository, you have to enable it manually by setting GIT_PS1_SHOWDIRTYSTATE to a nonempty value. The configuration variable bash.showDirtyState can then be used to disable it again for some repositories. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.h')
0 files changed, 0 insertions, 0 deletions