diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-05-14 16:03:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-14 16:03:19 -0700 |
commit | 306e76339fb038ce03be6ebac180746c67e83fe8 (patch) | |
tree | bc750056a598b1f350488282491fd8f8987774d1 /gitcredentials.txt | |
parent | 2b43cff1c1e6418402997ad8a78ff0a401a5957a (diff) | |
download | git-htmldocs-306e76339fb038ce03be6ebac180746c67e83fe8.tar.gz |
Autogenerated HTML docs for v2.27.0-rc0
Diffstat (limited to 'gitcredentials.txt')
-rw-r--r-- | gitcredentials.txt | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/gitcredentials.txt b/gitcredentials.txt index 0d0f7149b..9e481aec8 100644 --- a/gitcredentials.txt +++ b/gitcredentials.txt @@ -268,16 +268,26 @@ For a `get` operation, the helper should produce a list of attributes on stdout in the same format (see linkgit:git-credential[1] for common attributes). A helper is free to produce a subset, or even no values at all if it has nothing useful to provide. Any provided attributes will -overwrite those already known about by Git. If a helper outputs a -`quit` attribute with a value of `true` or `1`, no further helpers will -be consulted, nor will the user be prompted (if no credential has been -provided, the operation will then fail). +overwrite those already known about by Git's credential subsystem. + +While it is possible to override all attributes, well behaving helpers +should refrain from doing so for any attribute other than username and +password. + +If a helper outputs a `quit` attribute with a value of `true` or `1`, +no further helpers will be consulted, nor will the user be prompted +(if no credential has been provided, the operation will then fail). + +Similarly, no more helpers will be consulted once both username and +password had been provided. For a `store` or `erase` operation, the helper's output is ignored. -If it fails to perform the requested operation, it may complain to -stderr to inform the user. If it does not support the requested -operation (e.g., a read-only store), it should silently ignore the -request. + +If a helper fails to perform the requested operation or needs to notify +the user of a potential issue, it may write to stderr. + +If it does not support the requested operation (e.g., a read-only store), +it should silently ignore the request. If a helper receives any other operation, it should silently ignore the request. This leaves room for future operations to be added (older |