git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2] completion: remove credential helpers from porcelain commands

From
SZEDER Gábor <szeder@ira.uka.de>
Date
May 5, 2015, 16:33 UTC
Message-ID
<1430843593-412-1-git-send-email-szeder@ira.uka.de>

Don't offer the "main" 'git credential' command or any of the credential helpers from contrib/credential/ when completing git commands.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
> > +               credential-gnome-keyring) : credentials helpe;;
>
> Typo? Should be "helper;;", no?
Indeed, thanks.
 contrib/completion/git-completion.bash | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index e0eb6ae..42efbd6 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -665,8 +665,13 @@ __git_list_porcelain_commands ()
 		checkout-index)   : plumbing;;
 		commit-tree)      : plumbing;;
 		count-objects)    : infrequent;;
+		credential        : credentials;;
 		credential-cache) : credentials helper;;
+		credential-gnome-keyring) : credentials helper;;
+		credential-netrc) : credentials helper;;
+		credential-osxkeychain) : credentials helper;;
 		credential-store) : credentials helper;;
+		credential-wincred) : credentials helper;;
 		cvsexportcommit)  : export;;
 		cvsimport)        : import;;
 		cvsserver)        : daemon;;
-- 
1.9.5.msysgit.0
Message 1 of 1 in “completion: remove credential helpers from porcelain commands”
  1. completion: remove credential helpers from porcelain commandsSZEDER Gábor, May 5, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.