http: redact all cookies, teach GIT_TRACE_REDACT=0
commit827e7d4da470e8b9b222b2cf3b4a3b7f8c3c671f
authorJonathan Tan <jonathantanmy@google.com>
Fri, 5 Jun 2020 21:21:36 +0000 (5 14:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jun 2020 22:05:04 +0000 (5 15:05 -0700)
tree34d7ad0f2cb56442cdffd9d102179ad9396277c4
parent7167a62b9e2f648adc11411446f876f2458722a5
http: redact all cookies, teach GIT_TRACE_REDACT=0

In trace output (when GIT_TRACE_CURL is true), redact the values of all
HTTP cookies by default. Now that auth headers (since the implementation
of GIT_TRACE_CURL in 74c682d3c6 ("http.c: implement the GIT_TRACE_CURL
environment variable", 2016-05-24)) and cookie values (since this
commit) are redacted by default in these traces, also allow the user to
inhibit these redactions through an environment variable.

Since values of all cookies are now redacted by default,
GIT_REDACT_COOKIES (which previously allowed users to select individual
cookies to redact) now has no effect.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git.txt
http.c
t/t5551-http-fetch-smart.sh