From: Antero Mejr via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 68245@debbugs.gnu.org
Subject: bug#68245: [PATCH] Add tracked file completion for "git blame" to pcomplete.
Date: Thu, 04 Jan 2024 20:00:59 +0000 [thread overview]
Message-ID: <87frzcswas.fsf@mailbox.org> (raw)
[-- 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
next reply other threads:[~2024-01-04 20:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-04 20:00 Antero Mejr via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-01-04 21:07 ` bug#68245: [PATCH] Add tracked file completion for "git blame" to pcomplete Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87frzcswas.fsf@mailbox.org \
--to=bug-gnu-emacs@gnu.org \
--cc=68245@debbugs.gnu.org \
--cc=antero@mailbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.