From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Antero Mejr via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68245: [PATCH] Add tracked file completion for "git blame" to pcomplete. Date: Thu, 04 Jan 2024 20:00:59 +0000 Message-ID: <87frzcswas.fsf@mailbox.org> Reply-To: Antero Mejr Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38285"; mail-complaints-to="usenet@ciao.gmane.io" To: 68245@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 04 21:03:22 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rLTw1-0009jR-SW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Jan 2024 21:03:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLTvg-0008H1-LQ; Thu, 04 Jan 2024 15:03:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rLTve-0008Gp-MH for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 15:02:58 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rLTve-0005Kw-Dy for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 15:02:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rLTvh-00021a-TH for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 15:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jan 2024 20:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68245 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17043985397725 (code B ref -1); Thu, 04 Jan 2024 20:03:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Jan 2024 20:02:19 +0000 Original-Received: from localhost ([127.0.0.1]:55769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLTv1-00020W-5I for submit@debbugs.gnu.org; Thu, 04 Jan 2024 15:02:19 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:52056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLTuz-00020I-5t for submit@debbugs.gnu.org; Thu, 04 Jan 2024 15:02:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rLTuo-0008DO-Pg for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 15:02:07 -0500 Original-Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rLTum-0008WD-ML for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 15:02:06 -0500 Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4T5ctQ48L3z9sd7 for ; Thu, 4 Jan 2024 21:01:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1704398510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=b3yzRc3bcf+edejq9FYdHTtrM4zQRn9E7UkPlyR/VZY=; b=cMK2fpkq3+A5Ix2yc1aFFpfA3KSvRtjkN8EZ5XnZsXfagfFOyeVGpI2R+2LZGqXpvJQK4I K8w2arN6vN+M5EVRCJQC2k2j183M8kVUNyY9Y52jA7370/WzWPYRv4Hy8xd1pswui1WBMl bg95QsaiWvfO1DCkEBoDAK3Ni8h41k1/uXOUx0I1N/2QX4S+sdsfkmGPSSLHSQs3QmlodK 06fGzlu8sVeUvawIqesqBV9M6soD+dh8jZoRIl5hWOWBbAHomRO35zVB3Ayo2XDV7WoWHX +dEiq/2DpjjaJeWMGb6INC88uRzSJWkw9Qayu2DfeGDmLXCTI4selumOqU/8NQ== X-MBO-RS-META: wan5w1qash4cawez4ihffdw6f157p9fz X-MBO-RS-ID: 3883f72c58917b93efc Received-SPF: pass client-ip=2001:67c:2050:0:465::101; envelope-from=antero@mailbox.org; helo=mout-p-101.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277333 Archived-At: --=-=-= Content-Type: text/plain This patch makes pcomplete provide completions for tracked files when completing "git blame", which requires a mandatory file argument. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-tracked-file-completion-for-git-blame-to-pcomple.patch >From 1f4e5f711a9b98a0921a57d262fd086b440ffccd Mon Sep 17 00:00:00 2001 From: Antero Mejr 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 --=-=-=--