aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-git.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2026-01-21 09:18:01 +0100
committerJonas Bernoulli <jonas@bernoul.li>2026-01-21 09:18:01 +0100
commitb44f151051917c648039063e8f70bcd365d87dc4 (patch)
tree972f7086b782554529e244210ffa39fa341bec4e /lisp/magit-git.el
parentdbe18e790e4967b92da7712479938dd159dcaad1 (diff)
magit-git-string-p: Stop using experimental function
In the only two cases where we used this function instead of `magit-git-string', that did not make a difference. Also see next commit, which changes `magit-git-string' to take some inspiration from this function, but without being exactly the same.
Diffstat (limited to 'lisp/magit-git.el')
-rw-r--r--lisp/magit-git.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index e792f3c..7c5cdfd 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -458,7 +458,7 @@ buffer (creating it if necessary) and the error message is shown
in the status buffer (provided it exists).
This is an experimental replacement for `magit-git-string', and
-still subject to major changes. Also see `magit-git-string-p'."
+still subject to major changes."
(magit--with-refresh-cache
(list default-directory 'magit-git-string-ng args)
(magit--with-temp-process-buffer
@@ -1120,8 +1120,8 @@ tracked file."
(file-relative-name file dir))))
(defun magit-file-ignored-p (file)
- (magit-git-string-p "ls-files" "--others" "--ignored" "--exclude-standard"
- "--" (magit-convert-filename-for-git file)))
+ (magit-git-string "ls-files" "--others" "--ignored" "--exclude-standard"
+ "--" (magit-convert-filename-for-git file)))
(defun magit-file-tracked-p (file)
(magit-git-success "ls-files" "--error-unmatch"
@@ -1440,7 +1440,7 @@ string \"true\", otherwise return nil."
(equal (magit-git-str "rev-parse" args) "true"))
(defun magit-rev-verify (rev)
- (magit-git-string-p "rev-parse" "--verify" rev))
+ (magit-git-string "rev-parse" "--verify" rev))
(defun magit-commit-p (rev)
"Return commit oid for REV if it can be dereferences as a commit.