summaryrefslogtreecommitdiff
path: root/git-am.sh
diff options
context:
space:
mode:
authorLibravatar Ted Pavlic <ted@tedpavlic.com>2009-02-11 13:03:25 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-02-11 11:09:16 -0800
commite5dd864adfeb8b0176b31a132e972d7f7beff32a (patch)
tree724593197158d5ca1d412582d8f64093bcf7d69b /git-am.sh
parentcompletion: Use consistent if [...] convention, not "test" (diff)
downloadtgif-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 'git-am.sh')
0 files changed, 0 insertions, 0 deletions