]> git.ipfire.org Git - thirdparty/git.git/commitdiff
credential-store: document the file format a bit more
authorJunio C Hamano <gitster@pobox.com>
Tue, 28 Apr 2020 18:15:15 +0000 (11:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Apr 2020 04:27:50 +0000 (21:27 -0700)
Reading a malformed credential URL line and silently ignoring it
does not mean that we support empty lines and/or "# commented" lines
forever.  We should document it to avoid confusion.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-credential-store.txt

index 25fb963f4b06695bb0c5fcf9a1feed97dfc549ed..24166ca8b9894ec4c27506710709701859d2135d 100644 (file)
@@ -94,6 +94,10 @@ stored on its own line as a URL like:
 https://user:pass@example.com
 ------------------------------
 
+No other kinds of lines (e.g. empty lines or comment lines) are
+allowed in the file, even though some may be silently ignored. Do
+not view or edit the file with editors.
+
 When Git needs authentication for a particular URL context,
 credential-store will consider that context a pattern to match against
 each entry in the credentials file.  If the protocol, hostname, and