* bug#68245: [PATCH] Add tracked file completion for "git blame" to pcomplete.
@ 2024-01-04 20:00 Antero Mejr via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-04 21:07 ` Stefan Kangas
0 siblings, 1 reply; 2+ messages in thread
From: Antero Mejr via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-01-04 20:00 UTC (permalink / raw)
To: 68245
[-- Attachment #1: Type: text/plain, Size: 137 bytes --]
This patch makes pcomplete provide completions for tracked files when
completing "git blame", which requires a mandatory file argument.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-tracked-file-completion-for-git-blame-to-pcomple.patch --]
[-- Type: text/x-patch, Size: 1011 bytes --]
From 1f4e5f711a9b98a0921a57d262fd086b440ffccd Mon Sep 17 00:00:00 2001
From: Antero Mejr <antero@mailbox.org>
Date: Thu, 4 Jan 2024 19:49:23 +0000
Subject: [PATCH] Add tracked file completion for "git blame" to pcomplete.
* lisp/pcmpl-git.el (pcomplete/git): Add "blame" to the tracked files
clause.
---
lisp/pcmpl-git.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/pcmpl-git.el b/lisp/pcmpl-git.el
index facca4107a1..95b6859dd23 100644
--- a/lisp/pcmpl-git.el
+++ b/lisp/pcmpl-git.el
@@ -88,7 +88,7 @@ Files listed by `git ls-files ARGS' satisfy the predicate."
(pcomplete-entries
nil (pcmpl-git--tracked-file-predicate "-m"))))
;; Complete all tracked files
- ((or "mv" "rm" "grep" "status")
+ ((or "mv" "rm" "grep" "status" "blame")
(pcomplete-here
(pcomplete-entries nil (pcmpl-git--tracked-file-predicate))))
;; Complete revisions
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-04 21:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-04 20:00 bug#68245: [PATCH] Add tracked file completion for "git blame" to pcomplete Antero Mejr via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-04 21:07 ` Stefan Kangas
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.