docs: clarify that credential discards unrecognised attributes
It was previously unclear how unrecognised attributes are handled. Signed-off-by: M Hickford <mirth.hickford@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>
M Hickford committed
Oct 24, 2022 at 07:57 UTC
7fd54b6238e5802147a5ca259c3b5e6b8e06471d
2 files changed
+3
Documentation/git-credential.txt
+2
@@ -160,6 +160,8 @@ empty string.
160
Components which are missing from the URL (e.g., there is no
161
username in the example above) will be left unset.
162
163
+Unrecognised attributes are silently discarded.
164
+
165
GIT
166
---
167
Part of the linkgit:git[1] suite
Documentation/gitcredentials.txt
+1
@@ -269,6 +269,7 @@ stdout in the same format (see linkgit:git-credential[1] for common
269
attributes). A helper is free to produce a subset, or even no values at
270
all if it has nothing useful to provide. Any provided attributes will
271
overwrite those already known about by Git's credential subsystem.
272
+Unrecognised attributes are silently discarded.
273
274
While it is possible to override all attributes, well behaving helpers
275
should refrain from doing so for any attribute other than username and