Skip to content

Commit

Permalink
magit-insert-upstream-branch-header: respect branch.NAME.rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Nov 28, 2016
1 parent f7b7cea commit e65f15d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lisp/magit.el
Original file line number Diff line number Diff line change
Expand Up @@ -721,9 +721,10 @@ detached `HEAD'."
(magit-insert-section (branch pull)
(let ((rebase (magit-git-string "config"
(format "branch.%s.rebase" branch))))
(if (equal rebase "false")
(setq rebase nil)
(setq rebase (magit-get-boolean "pull.rebase")))
(pcase rebase
("true")
("false" (setq rebase nil))
(_ (setq rebase (magit-get-boolean "pull.rebase"))))
(insert (format "%-10s" (or keyword (if rebase "Rebase: " "Merge: ")))))
(--when-let (and magit-status-show-hashes-in-headers
(magit-rev-format "%h" pull))
Expand Down

0 comments on commit e65f15d

Please sign in to comment.