summaryrefslogtreecommitdiff
path: root/Documentation/git.txt
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2018-01-19 00:28:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-01-19 21:06:50 (GMT)
commit83411783c3ebd0ffb55a05e8ad63b13b8530747f (patch)
treed178e3b2686847eb7109956eb8dfcc79ae933cc7 /Documentation/git.txt
parent2512f15446149235156528dafbe75930c712b29e (diff)
downloadgit-83411783c3ebd0ffb55a05e8ad63b13b8530747f.zip
git-83411783c3ebd0ffb55a05e8ad63b13b8530747f.tar.gz
git-83411783c3ebd0ffb55a05e8ad63b13b8530747f.tar.bz2
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/git.txt')
-rw-r--r--Documentation/git.txt6
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.
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,