Function: magit-rev-parse-p

magit-rev-parse-p is a byte-compiled function defined in magit-git.el.

Signature

(magit-rev-parse-p &rest ARGS)

Documentation

Execute git rev-parse ARGS, returning t if it prints "true".

Return t if the first (and usually only) output line is the string "true", otherwise return nil.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-rev-parse-p (&rest args)
  "Execute `git rev-parse ARGS', returning t if it prints \"true\".
Return t if the first (and usually only) output line is the
string \"true\", otherwise return nil."
  (equal (magit-git-str "rev-parse" args) "true"))