Using HEAD as branch-name when this is a detached HEAD

This commit is contained in:
Rémi Vanicat 2010-03-28 17:05:48 +02:00 committed by Phil Jackson
parent 82b8d93731
commit c51582ee17

View file

@ -3320,6 +3320,7 @@ Prefix arg means justify as well."
(magit-need-refresh)))) (magit-need-refresh))))
(defun magit-refresh-wazzup-buffer (head all) (defun magit-refresh-wazzup-buffer (head all)
(unless head (setq head "HEAD"))
(magit-create-buffer-sections (magit-create-buffer-sections
(magit-with-section 'wazzupbuf nil (magit-with-section 'wazzupbuf nil
(insert (format "Wazzup, %s\n\n" head)) (insert (format "Wazzup, %s\n\n" head))