summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>2014-02-26 10:43:50 +0000
committerGianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>2014-02-26 10:43:50 +0000
commitd997a25c2a9233f2e63d3a095d0acd669c17ea79 (patch)
tree06733c8e19a4b29ecdb1bfb11c7ba107976cbeef
parentadd timestamp to prompt (diff)
downloadgit-prompt-d997a25c2a9233f2e63d3a095d0acd669c17ea79.tar.gz
git-prompt-d997a25c2a9233f2e63d3a095d0acd669c17ea79.tar.bz2
git-prompt-d997a25c2a9233f2e63d3a095d0acd669c17ea79.zip
fix tag ref cleanup
-rwxr-xr-xgit-logc2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-logc b/git-logc
index a38a827..147b1e3 100755
--- a/git-logc
+++ b/git-logc
@@ -24,7 +24,7 @@ sub class_decor {
if ($decor eq 'HEAD') {
$colour=BRIGHT_CYAN;
}
- elsif ($decor =~ s{^refs/tags/}{tag: }) {
+ elsif ($decor =~ s{^(?:tag: )?refs/tags/}{tag: }) {
$colour=BRIGHT_YELLOW;
}
elsif ($decor =~ s{^refs/remotes/}{}) {