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,14 +3320,15 @@ Prefix arg means justify as well."
(magit-need-refresh))))
(defun magit-refresh-wazzup-buffer (head all)
(unless head (setq head "HEAD"))
(magit-create-buffer-sections
(magit-with-section 'wazzupbuf nil
(insert (format "Wazzup, %s\n\n" head))
(let* ((excluded (magit-file-lines ".git/info/wazzup-exclude"))
(all-branches (magit-list-interesting-refs))
(branches (if all all-branches
(remove-if (lambda (b) (member (cdr b) excluded))
all-branches)))
(remove-if (lambda (b) (member (cdr b) excluded))
all-branches)))
(reported (make-hash-table :test #'equal)))
(dolist (branch branches)
(let* ((name (car branch))
@ -3349,7 +3350,7 @@ Prefix arg means justify as well."
n name
(if (member ref excluded)
" (normally ignored)"
""))
""))
'magit-wash-log
"log"
(format "--max-count=%s" magit-log-cutoff-length)