aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/gitcredentials.txt
diff options
context:
space:
mode:
authorDavid Zych <dmrz@illinois.edu>2018-09-26 22:23:11 +0000
committerJunio C Hamano <gitster@pobox.com>2018-09-27 15:24:50 -0700
commit4ba3c9be47a0132fd0ba9bb04db7842c3b4967b2 (patch)
tree50af6a902a764acf8710b01d67ec94f8b22b8d91 /Documentation/gitcredentials.txt
parent1d4361b0f344188ab5eec6dcea01f61a3a3a1670 (diff)
downloadgit-4ba3c9be47a0132fd0ba9bb04db7842c3b4967b2.tar.gz
doc: clarify gitcredentials path component matching
The gitcredentials documentation implied that the config file's "pattern" URL might include a path component, but did not explain that it must match exactly (potentially leaving readers with the false hope that it would support a more flexible prefix match). Signed-off-by: David Zych <dmrz@illinois.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gitcredentials.txt')
-rw-r--r--Documentation/gitcredentials.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/gitcredentials.txt b/Documentation/gitcredentials.txt
index f970196bc1..adc759612d 100644
--- a/Documentation/gitcredentials.txt
+++ b/Documentation/gitcredentials.txt
@@ -133,6 +133,12 @@ compares hostnames exactly, without considering whether two hosts are part of
the same domain. Likewise, a config entry for `http://example.com` would not
match: Git compares the protocols exactly.
+If the "pattern" URL does include a path component, then this too must match
+exactly: the context `https://example.com/bar/baz.git` will match a config
+entry for `https://example.com/bar/baz.git` (in addition to matching the config
+entry for `https://example.com`) but will not match a config entry for
+`https://example.com/bar`.
+
CONFIGURATION OPTIONS
---------------------