Function: magit-cherry

magit-cherry is an autoloaded, interactive and byte-compiled function defined in magit-log.el.

Signature

(magit-cherry HEAD UPSTREAM)

Documentation

Show commits in a branch that are not merged in the upstream branch.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-log.el
;;;###autoload
(defun magit-cherry (head upstream)
  "Show commits in a branch that are not merged in the upstream branch."
  (interactive
    (let  ((head (magit-read-branch "Cherry head")))
      (list head (magit-read-other-branch "Cherry upstream" head
                                          (magit-get-upstream-branch head)))))
  (require 'magit)
  (magit-cherry-setup-buffer head upstream))