git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] completion: remove credential helpers from porcelain commands
@ 2015-05-05 13:19 SZEDER Gábor
  2015-05-05 14:28 ` Erik Faye-Lund
  2015-05-05 20:06 ` Jeff King
  0 siblings, 2 replies; 7+ messages in thread
From: SZEDER Gábor @ 2015-05-05 13:19 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, SZEDER Gábor

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>
---

I was tempted to simply filter out 'credential-*', so we don't have to
update this list when new credential helpers arrive.  However, the
'git-credential-*' "namespace" is not explicitly reserved for credential
helpers, users have to set the 'credential.helper' config variable to tell
explicitly that 'git-credential-foo' should be used as credential helper,
and who knows, someone might have his own 'git-credential-bar' command that
does something completely unrelated to git's credential system, so in the
end decided against it.  And credential helpers don't pop up too frequently
anyway.

However, if you think filtering out 'credential-*' is the way to go, I'm
happy to reroll.

 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..527bb00 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 helpe;;
+		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

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] completion: remove credential helpers from porcelain commands
@ 2012-06-13  8:11 SZEDER Gábor
  2012-06-13 20:25 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: SZEDER Gábor @ 2012-06-13  8:11 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, SZEDER Gábor

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
 contrib/completion/git-completion.bash | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 1689f995..b687d7e8 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -846,6 +846,8 @@ __git_list_porcelain_commands ()
 		checkout-index)   : plumbing;;
 		commit-tree)      : plumbing;;
 		count-objects)    : infrequent;;
+		credential-cache) : credentials helper;;
+		credential-store) : credentials helper;;
 		cvsexportcommit)  : export;;
 		cvsimport)        : import;;
 		cvsserver)        : daemon;;
-- 
1.7.11.rc2.65.g240b4fe

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-06 10:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-05 13:19 [PATCH] completion: remove credential helpers from porcelain commands SZEDER Gábor
2015-05-05 14:28 ` Erik Faye-Lund
2015-05-05 20:06 ` Jeff King
2015-05-05 21:36   ` Junio C Hamano
2015-05-06 10:26     ` SZEDER Gábor
  -- strict thread matches above, loose matches on Subject: below --
2012-06-13  8:11 SZEDER Gábor
2012-06-13 20:25 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).