From: Shawn O. Pearce Date: Sun, 24 Feb 2008 08:07:33 +0000 (-0500) Subject: Use git-describe --exact-match in bash prompt on detached HEAD X-Git-Tag: v1.5.5-rc0~145^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/27c578885a0b8f56430c5a24f558e2b45cf04a38?hp=27c578885a0b8f56430c5a24f558e2b45cf04a38 Use git-describe --exact-match in bash prompt on detached HEAD Most of the time when I am on a detached HEAD and I am not doing a rebase or bisect operation the working directory is sitting on a tagged release of the repository. Showing the tag name instead of the commit SHA-1 is much more descriptive and a much better reminder of the state of this working directory. Now that git-describe --exact-match is available as a cheap means of obtaining the exact annotated tag or nothing at all, we can favor the annotated tag name over the abbreviated commit SHA-1. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano ---