summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2f5b398)
raw | patch | inline | side by side (parent: 2f5b398)
author | Alexandre Julliard <julliard@winehq.org> | |
Wed, 22 Aug 2007 10:21:38 +0000 (12:21 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 22 Aug 2007 22:29:08 +0000 (15:29 -0700) |
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/emacs/git.el | patch | blob | history |
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index be44e06c452818651d57f07ebb1288e62680794f..abc799a28714652075501f12e18ff44e90a5f023 100644 (file)
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
(ewoc-set-hf status
(format "Directory: %s\nBranch: %s\nHead: %s%s\n"
default-directory
- (if (string-match "^refs/heads/" branch)
- (substring branch (match-end 0))
- branch)
+ (if branch
+ (if (string-match "^refs/heads/" branch)
+ (substring branch (match-end 0))
+ branch)
+ "none (detached HEAD)")
head
(if merge-heads
(concat "\nMerging: "