Skip to content

Commit 3e5f29e

Browse files
peffgitster
authored andcommitted
docs/credential: minor clarity fixups
The text in git-credential(1) was copied from technical/api-credentials, so it still talks about the input/output format as coming from git to the helper. Since the surrounding text already indicates that this format is used for reading and writing with git credential, we can just remove the extraneous confusing bits. Signed-off-by: Jeff King <peff@peff.net> Acked-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6a9aa0c commit 3e5f29e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Documentation/git-credential.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,20 @@ INPUT/OUTPUT FORMAT
102102
-------------------
103103

104104
`git credential` reads and/or writes (depending on the action used)
105-
credential information in its standard input/output. These information
105+
credential information in its standard input/output. This information
106106
can correspond either to keys for which `git credential` will obtain
107107
the login/password information (e.g. host, protocol, path), or to the
108108
actual credential data to be obtained (login/password).
109109

110-
The credential is split into a set of named attributes.
111-
Attributes are provided to the helper, one per line. Each attribute is
110+
The credential is split into a set of named attributes, with one
111+
attribute per line. Each attribute is
112112
specified by a key-value pair, separated by an `=` (equals) sign,
113113
followed by a newline. The key may contain any bytes except `=`,
114114
newline, or NUL. The value may contain any bytes except newline or NUL.
115115
In both cases, all bytes are treated as-is (i.e., there is no quoting,
116116
and one cannot transmit a value with newline or NUL in it). The list of
117117
attributes is terminated by a blank line or end-of-file.
118-
Git will send the following attributes (but may not send all of
119-
them for a given credential; for example, a `host` attribute makes no
120-
sense when dealing with a non-network protocol):
118+
Git understands the following attributes:
121119

122120
`protocol`::
123121

0 commit comments

Comments
 (0)