From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcus Griep Subject: [PATCH v2] bash-completion: Add non-command git help files to bash-completion Date: Fri, 15 Aug 2008 13:59:28 -0400 Message-ID: <1218823168-1753-1-git-send-email-marcus@griep.us> References: <1218816948-7864-1-git-send-email-marcus@griep.us> Cc: "Shawn O. Pearce" , Junio C Hamano , Jonathan Nieder , Marcus Griep To: Git Mailing List X-From: git-owner@vger.kernel.org Fri Aug 15 20:00:39 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KU3bF-0000uI-KR for gcvg-git-2@gmane.org; Fri, 15 Aug 2008 20:00:34 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754449AbYHOR7a (ORCPT ); Fri, 15 Aug 2008 13:59:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754490AbYHOR7a (ORCPT ); Fri, 15 Aug 2008 13:59:30 -0400 Received: from boohaunt.net ([209.40.206.144]:54526 "EHLO boohaunt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754350AbYHOR73 (ORCPT ); Fri, 15 Aug 2008 13:59:29 -0400 Received: by boohaunt.net (Postfix, from userid 1000) id C617B1878CDD; Fri, 15 Aug 2008 13:59:28 -0400 (EDT) X-Mailer: git-send-email 1.6.0.rc3.10.g5a13c In-Reply-To: <1218816948-7864-1-git-send-email-marcus@griep.us> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Git allows access to the gitattributes man page via `git help attributes`, but this is not discoverable via the bash-completion mechanism. This patch adds all current non-command man pages to the completion candidate list. Signed-off-by: Marcus Griep --- By adding them to the help completion, man pages such as the tutorials, hooks, and .gitattributes are more accessible to random discovery from bash-completion. This patch also incorporates the suggestion that 'gitk' is an easier to grok completion than 'k'. contrib/completion/git-completion.bash | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index c0bf7aa..158b912 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -885,7 +885,11 @@ _git_help () return ;; esac - __gitcomp "$(__git_all_commands)" + __gitcomp "$(__git_all_commands) + attributes cli core-tutorial cvs-migration + diffcore gitk glossary hooks ignore modules + repository-layout tutorial tutorial-2 + " } _git_init () -- 1.6.0.rc3.10.g5a13c