From 826dc7b6b18e3608eac4c237316b9b43efdd8607 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Tue, 19 Nov 2013 15:23:53 -0500 Subject: [PATCH] * vc/vc-git.el (vc-git-dir-extra-headers): Add headers when rebase or bisect are in progress. --- lisp/ChangeLog | 5 +++++ lisp/vc/vc-git.el | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9ad7e8a7d79..d052406332a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-11-19 Dan Nicolaescu + + * vc/vc-git.el (vc-git-dir-extra-headers): Add headers + when rebase or bisect are in progress. + 2013-11-19 Xue Fuqiao * filenotify.el (file-notify-add-watch): Doc fix. diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 1d67deeeba3..fd5c91ef490 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -559,6 +559,11 @@ or an empty string if none." (propertize remote-url 'face 'font-lock-variable-name-face))) "\n" + ;; For now just a heading, key bindings can be added later for various bisect actions + (when (file-exists-p (expand-file-name ".git/BISECT_START" (vc-git-root _dir))) + (propertize "Bisect : in progress\n" 'face 'font-lock-warning-face)) + (when (file-exists-p (expand-file-name ".git/rebase-apply" (vc-git-root _dir))) + (propertize "Rebase : in progress\n" 'face 'font-lock-warning-face)) (if stash (concat (propertize "Stash :\n" 'face 'font-lock-type-face -- 2.39.2