diff options
author | Ted Pavlic <ted@tedpavlic.com> | 2009-02-11 13:03:25 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-11 11:09:16 -0800 |
commit | e5dd864adfeb8b0176b31a132e972d7f7beff32a (patch) | |
tree | 724593197158d5ca1d412582d8f64093bcf7d69b /shortlog.h | |
parent | completion: Use consistent if [...] convention, not "test" (diff) | |
download | tgif-e5dd864adfeb8b0176b31a132e972d7f7beff32a.tar.xz |
completion: Better __git_ps1 support when not in working directory
If .git/HEAD is not readable, __git_ps1 does nothing.
If --is-in-git-dir, __git_ps1 returns " (GIT_DIR!)" as a cautionary
note. The previous behavior would show the branch name (and would
optionally attempt to determine the dirtyState of the directory, which
was impossible because a "git diff" was used).
If --is-in-work-tree, __git_ps1 returns the branch name. Additionally,
if showDirtyState is on, the dirty state is displayed.
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'shortlog.h')
0 files changed, 0 insertions, 0 deletions