Subject: bug#68245: closed (Re: bug#68245: [PATCH] Add tracked file completion for "git blame" to pcomplete.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 04 Jan 2024 21:08:02 +0000

Your bug report

#68245: [PATCH] Add tracked file completion for "git blame" to pcomplete.

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
68245: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68245
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#68245: [PATCH] Add tracked file completion for "git blame" to pcomplete.
From: Stefan Kangas <[email-masked]>
To: Antero Mejr <[email-masked]>, [email-masked]
Date: Thu, 4 Jan 2024 13:07:04 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 30.1

Antero Mejr via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <[email-masked]> writes:

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

Thanks, installed on master as commit 225710ba79c and closing.

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