branch: elpa/magit
commit 1b3d156606a2e1f094931dcbc77aca4528b0de43
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-insert-cherry-headers: Use magit-branch-set-face
---
 lisp/magit-log.el | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/lisp/magit-log.el b/lisp/magit-log.el
index fb623c5ed4..9d1e2981c3 100644
--- a/lisp/magit-log.el
+++ b/lisp/magit-log.el
@@ -1918,13 +1918,8 @@ Type \\[magit-cherry-pick] to apply the commit at point.
 
 (defun magit-insert-cherry-headers ()
   "Insert headers appropriate for `magit-cherry-mode' buffers."
-  (let ((branch (propertize magit-buffer-refname
-                            'font-lock-face 'magit-branch-local))
-        (upstream (propertize
-                   magit-buffer-cherry-upstream 'font-lock-face
-                   (if (magit-local-branch-p magit-buffer-cherry-upstream)
-                       'magit-branch-local
-                     'magit-branch-remote))))
+  (let ((branch   (magit-branch-set-face magit-buffer-refname))
+        (upstream (magit-branch-set-face magit-buffer-cherry-upstream)))
     (magit-insert-head-branch-header branch)
     (magit-insert-upstream-branch-header branch upstream "Upstream: ")
     (insert ?\n)))

Reply via email to