Skip to content

Commit

Permalink
docs: make notes regarding credential line reading
Browse files Browse the repository at this point in the history
This commit adds notes to git-credential.txt and to gitcredentials.txt
specifying that 'LF' and 'CR/LF' endings are treated the same.
  • Loading branch information
Nikita committed Aug 23, 2020
1 parent 99d0030 commit 6e20f7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documentation/git-credential.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ specified by a key-value pair, separated by an `=` (equals) sign,
followed by a newline. The key may contain any bytes except `=`,
newline, or NUL. The value may contain any bytes except newline or NUL.
In both cases, all bytes are treated as-is (i.e., there is no quoting,
and one cannot transmit a value with newline or NUL in it). The list of
and one cannot transmit a value with newline or NUL in it). Note that
Git will treat a carriage return before the final newline as part of
line ending, and not part of the data. The list of
attributes is terminated by a blank line or end-of-file.
Git understands the following attributes:

Expand Down
2 changes: 2 additions & 0 deletions Documentation/gitcredentials.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ entry for `https://example.com/bar/baz.git` (in addition to matching the config
entry for `https://example.com`) but will not match a config entry for
`https://example.com/bar`.

Note that Git will treat a carriage return before the final newline as part
of line ending, and not part of the data.

CONFIGURATION OPTIONS
---------------------
Expand Down

0 comments on commit 6e20f7c

Please sign in to comment.