From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Braun Subject: [PATCH v4 1/3] completion: factor out untracked file modes into a variable Date: Fri, 3 Jun 2016 20:34:24 +0200 Message-ID: <20160603183426.13140-2-thomas.braun@virtuell-zuhause.de> References: <20160603183426.13140-1-thomas.braun@virtuell-zuhause.de> Cc: Ramkumar Ramachandra , Junio C Hamano , John Keeping , =?UTF-8?q?SZEDER=20G=C3=A1bor?= To: peff@peff.net, git@vger.kernel.org X-From: git-owner@vger.kernel.org Fri Jun 03 20:34:51 2016 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b8tvn-0000UP-12 for gcvg-git-2@plane.gmane.org; Fri, 03 Jun 2016 20:34:51 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752099AbcFCSej (ORCPT ); Fri, 3 Jun 2016 14:34:39 -0400 Received: from wp156.webpack.hosteurope.de ([80.237.132.163]:55776 "EHLO wp156.webpack.hosteurope.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147AbcFCSei (ORCPT ); Fri, 3 Jun 2016 14:34:38 -0400 Received: from p4fc87c53.dip0.t-ipconnect.de ([79.200.124.83] helo=localhost.localdomain); authenticated by wp156.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) id 1b8tvY-0005jY-4A; Fri, 03 Jun 2016 20:34:36 +0200 X-Mailer: git-send-email 2.8.3.windows.1 In-Reply-To: <20160603183426.13140-1-thomas.braun@virtuell-zuhause.de> X-bounce-key: webpack.hosteurope.de;thomas.braun@virtuell-zuhause.de;1464978878;ba40453f; Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Thomas Braun --- contrib/completion/git-completion.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 3402475..addea89 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1098,6 +1098,8 @@ _git_clone () esac } +__git_untracked_file_modes="all no normal" + _git_commit () { case "$prev" in @@ -1119,7 +1121,7 @@ _git_commit () return ;; --untracked-files=*) - __gitcomp "all no normal" "" "${cur##--untracked-files=}" + __gitcomp "$__git_untracked_file_modes" "" "${cur##--untracked-files=}" return ;; --*) -- 2.8.3.windows.1