http: support cookie redaction when tracing
commit83411783c3ebd0ffb55a05e8ad63b13b8530747f
authorJonathan Tan <jonathantanmy@google.com>
Fri, 19 Jan 2018 00:28:01 +0000 (18 16:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jan 2018 21:06:50 +0000 (19 13:06 -0800)
treed178e3b2686847eb7109956eb8dfcc79ae933cc7
parent2512f15446149235156528dafbe75930c712b29e
http: support cookie redaction when tracing

When using GIT_TRACE_CURL, Git already redacts the "Authorization:" and
"Proxy-Authorization:" HTTP headers. Extend this redaction to a
user-specified list of cookies, specified through the
"GIT_REDACT_COOKIES" environment variable.

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