[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 98a1f1d74b 5/7: magit-file-ignored-p: New funct
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 98a1f1d74b 5/7: magit-file-ignored-p: New function |
Date: |
Sat, 20 May 2023 18:01:02 -0400 (EDT) |
branch: elpa/git-commit
commit 98a1f1d74b6b9def26d15c300cf21bf1d59212c2
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-file-ignored-p: New function
Cannot use "git check-ignore" because it does not suppor pathspec
magic "literal".
---
lisp/magit-git.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 9c36ac9373..aa0ca412d5 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -1097,6 +1097,10 @@ tracked file."
(directory-file-name (file-name-directory file))))))
(file-relative-name file dir))))
+(defun magit-file-ignored-p (file)
+ (magit-git-string-p "ls-files" "--others" "--ignored" "--exclude-standard"
+ "--" file))
+
(defun magit-file-tracked-p (file)
(magit-git-success "ls-files" "--error-unmatch" file))
- [nongnu] elpa/git-commit updated (33d1e41d69 -> ebd7a0635d), ELPA Syncer, 2023/05/20
- [nongnu] elpa/git-commit be12ac7511 3/7: magit-stage-file: With a prefix argument offer ignored files, ELPA Syncer, 2023/05/20
- [nongnu] elpa/git-commit 09f600fdcd 1/7: magit-{un, }stage-file: Always prompt, ELPA Syncer, 2023/05/20
- [nongnu] elpa/git-commit df8095b4da 2/7: magit-{un, }stage-file: Support acting on multiple files, ELPA Syncer, 2023/05/20
- [nongnu] elpa/git-commit 9c6207bb84 4/7: magit-file-dispatch: No longer pivot if not visiting file, ELPA Syncer, 2023/05/20
- [nongnu] elpa/git-commit a4a007f51b 6/7: magit-file-tracked-p: Separate file arguments from other arguments, ELPA Syncer, 2023/05/20
- [nongnu] elpa/git-commit ebd7a0635d 7/7: magit-{un, }stage-buffer-file: New commands, ELPA Syncer, 2023/05/20
- [nongnu] elpa/git-commit 98a1f1d74b 5/7: magit-file-ignored-p: New function,
ELPA Syncer <=