path: root/Documentation/git.txt
diff options
authorJonathan Tan <>2018-01-19 00:28:01 (GMT)
committerJunio C Hamano <>2018-01-19 21:06:50 (GMT)
commit83411783c3ebd0ffb55a05e8ad63b13b8530747f (patch)
treed178e3b2686847eb7109956eb8dfcc79ae933cc7 /Documentation/git.txt
parent2512f15446149235156528dafbe75930c712b29e (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git.txt')
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 3f4161a..5446d21 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -646,6 +646,12 @@ of clones and fetches.
See `GIT_TRACE` for available trace output options.
+ 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.
Setting this variable to `1` will cause Git to treat all
pathspecs literally, rather than as glob patterns. For example,