diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2018-01-18 16:28:01 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-19 13:06:50 -0800 |
commit | 83411783c3ebd0ffb55a05e8ad63b13b8530747f (patch) | |
tree | d178e3b2686847eb7109956eb8dfcc79ae933cc7 /Documentation | |
parent | Git 2.16 (diff) | |
download | tgif-83411783c3ebd0ffb55a05e8ad63b13b8530747f.tar.xz |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt index 3f4161a799..5446d21438 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -646,6 +646,12 @@ of clones and fetches. variable. See `GIT_TRACE` for available trace output options. +`GIT_REDACT_COOKIES`:: + This can be set to a comma-separated list of strings. When a curl trace + is enabled (see `GIT_TRACE_CURL` above), whenever a "Cookies:" header + sent by the client is dumped, values of cookies whose key is in that + list (case-sensitive) are redacted. + `GIT_LITERAL_PATHSPECS`:: Setting this variable to `1` will cause Git to treat all pathspecs literally, rather than as glob patterns. For example, |