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

    magit-branch-set-face: Move definition
    
    Do not needlessly interrupt the sequence of magit-*-p definitions.
---
 lisp/magit-git.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 530ec8ff4e..662199fa84 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -2310,17 +2310,17 @@ specified using `core.worktree'."
   (or (car (member rev (magit-list-remote-branches)))
       (car (member rev (magit-list-remote-branch-names)))))
 
-(defun magit-branch-set-face (branch)
-  (magit--propertize-face branch (if (magit-local-branch-p branch)
-                                     'magit-branch-local
-                                   'magit-branch-remote)))
-
 (defun magit-tag-p (obj)
   (equal (magit-object-type obj) "tag"))
 
 (defun magit-remote-p (string)
   (car (member string (magit-list-remotes))))
 
+(defun magit-branch-set-face (branch)
+  (magit--propertize-face branch (if (magit-local-branch-p branch)
+                                     'magit-branch-local
+                                   'magit-branch-remote)))
+
 (defvar magit-main-branch-names
   '("main" "master" "trunk" "development")
   "Branch names reserved for use by the primary branch.

Reply via email to