Function: magit-read-starting-point

magit-read-starting-point is a byte-compiled function defined in magit-git.el.

Signature

(magit-read-starting-point PROMPT &optional BRANCH DEFAULT)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-read-starting-point (prompt &optional branch default)
  (or (magit-completing-read
       (concat prompt
               (and branch
                    (if (bound-and-true-p ivy-mode)
                        ;; Ivy-mode strips faces from prompt.
                        (format  " `%s'" branch)
                      (concat " " (magit--propertize-face
                                   branch 'magit-branch-local))))
               " starting at")
       (nconc (list "HEAD")
              (magit-list-refnames)
              (directory-files (magit-gitdir) nil "_HEAD\\'"))
       nil 'any nil 'magit-revision-history
       (or default (magit--default-starting-point)))
      (user-error "Nothing selected")))