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

[PATCH] docs: document credential.helper allowed values

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
May 5, 2020, 23:12 UTC
Message-ID
<20200505231226.1280264-1-sandals@crustytoothpaste.net>

gitcredentials(7) already mentions several possible invocations that one can use as the value for credential.helper. However, many people are not aware that there are other options than a simple credential helper name, so let's place some explanatory text in the documentation for credential.helper as well.

We still refer the user to gitcredential(7) for additional explanations and helpful examples.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
---
 Documentation/config/credential.txt | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/Documentation/config/credential.txt b/Documentation/config/credential.txt
index 60fb3189e1..9d01641c28 100644
--- a/Documentation/config/credential.txt
+++ b/Documentation/config/credential.txt
@@ -1,9 +1,13 @@
 credential.helper::
 	Specify an external helper to be called when a username or
 	password credential is needed; the helper may consult external
-	storage to avoid prompting the user for the credentials. Note
-	that multiple helpers may be defined. See linkgit:gitcredentials[7]
-	for details.
+	storage to avoid prompting the user for the credentials. This is
+	normally the name of a credential helper with possible
+	arguments, but may also be an absolute path with arguments or, if
+	preceded by `!`, shell commands.
++
+Note that multiple helpers may be defined. See linkgit:gitcredentials[7]
+for details and examples.
 
 credential.useHttpPath::
 	When acquiring credentials, consider the "path" component of an http
Next: Carlo Marcelo Arenas Belón
Message 1 of 3 in “docs: document credential.helper allowed values”
  1. docs: document credential.helper allowed valuesbrian m. carlson, May 5, 2020
  2. Carlo Marcelo Arenas BelónMay 6, 2020
  3. Jeff KingMay 6, 2020

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.