summaryrefslogtreecommitdiffstats
path: root/wt-status.h
diff options
context:
space:
mode:
authorChris Parsons <chris@edendevelopment.co.uk>2008-05-22 14:50:02 +0200
committerJunio C Hamano <gitster@pobox.com>2008-05-23 08:51:22 +0200
commit950ce2e22db4a3c1ff9ad598b46ccb22c517a336 (patch)
tree049fd11a2346c2ec1c20ce0787f8eaf6b97dce44 /wt-status.h
parentpull --rebase: exit early when the working directory is dirty (diff)
downloadgit-950ce2e22db4a3c1ff9ad598b46ccb22c517a336.tar.xz
git-950ce2e22db4a3c1ff9ad598b46ccb22c517a336.zip
Updated status to show 'Not currently on any branch' in red
This provides additional warning to users when attempting to commit to a detached HEAD. It is configurable in color.status.nobranch. Signed-off-by: Chris Parsons <chris@edendevelopment.co.uk> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.h')
-rw-r--r--wt-status.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wt-status.h b/wt-status.h
index 7d61410b17..f0675fdff3 100644
--- a/wt-status.h
+++ b/wt-status.h
@@ -8,6 +8,7 @@ enum color_wt_status {
WT_STATUS_UPDATED,
WT_STATUS_CHANGED,
WT_STATUS_UNTRACKED,
+ WT_STATUS_NOBRANCH,
};
struct wt_status {