Subject: [PATCH] Add tracked file completion for "git blame" to pcomplete.
From: Antero Mejr <[email-masked]>
To: [email-masked]
Date: Thu, 04 Jan 2024 20:00:59 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

This patch makes pcomplete provide completions for tracked files when
completing "git blame", which requires a mandatory file argument.

From 1f4e5f711a9b98a0921a57d262fd086b440ffccd Mon Sep 17 00:00:00 2001
From: Antero Mejr <[email-masked]>
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