]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: update http.cookieFile with in-memory cookie processing
authorPiotr Szlazak <piotr.szlazak@gmail.com>
Thu, 11 Jul 2024 08:36:48 +0000 (08:36 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2024 15:50:30 +0000 (08:50 -0700)
Documentation only mentions how to read cookies from the given file
and how to save them to the file using http.saveCookies.

But underlying libcURL allows the HTTP cookies used only in memory;
cookies from the server will be accepted and sent back in successive
requests within same connection, by using an empty string as the
filename.  Document this.

Signed-off-by: Piotr Szlazak <piotr.szlazak@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/http.txt

index 2d4e0c9b869b567200cfc5805600b51deaa41669..bd04ca1c2eddee15973a8ba160d4dad09c8f7a8d 100644 (file)
@@ -82,12 +82,16 @@ http.cookieFile::
        in the Git http session, if they match the server. The file format
        of the file to read cookies from should be plain HTTP headers or
        the Netscape/Mozilla cookie file format (see `curl(1)`).
+       Set it to an empty string, to accept only new cookies from
+       the server and send them back in successive requests within same
+       connection.
        NOTE that the file specified with http.cookieFile is used only as
        input unless http.saveCookies is set.
 
 http.saveCookies::
        If set, store cookies received during requests to the file specified by
-       http.cookieFile. Has no effect if http.cookieFile is unset.
+       http.cookieFile. Has no effect if http.cookieFile is unset, or set to
+       an empty string.
 
 http.version::
        Use the specified HTTP protocol version when communicating with a server.