From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Braun Subject: [PATCH v2 1/2] completion: create variable for untracked file modes Date: Wed, 01 Jun 2016 11:37:26 +0200 Message-ID: <1464773846.4315.0.camel@virtuell-zuhause.de> References: <20160601040542.GA18978@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Ramkumar Ramachandra , Junio C Hamano , John Keeping , SZEDER =?ISO-8859-1?Q?G=E1bor?= To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Jun 01 11:37:46 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 1b82at-0000If-2l for gcvg-git-2@plane.gmane.org; Wed, 01 Jun 2016 11:37:43 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758057AbcFAJhc (ORCPT ); Wed, 1 Jun 2016 05:37:32 -0400 Received: from wp156.webpack.hosteurope.de ([80.237.132.163]:33707 "EHLO wp156.webpack.hosteurope.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758053AbcFAJh3 (ORCPT ); Wed, 1 Jun 2016 05:37:29 -0400 Received: from p4fc87c53.dip0.t-ipconnect.de ([79.200.124.83] helo=[192.168.100.43]); authenticated by wp156.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) id 1b82ad-0001iQ-8c; Wed, 01 Jun 2016 11:37:27 +0200 In-Reply-To: <20160601040542.GA18978@sigill.intra.peff.net> X-Mailer: Evolution 3.12.9-1+b1 X-bounce-key: webpack.hosteurope.de;thomas.braun@virtuell-zuhause.de;1464773849;2980f452; 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 ;; --*)