aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/gitcredentials.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-03-05 10:43:02 -0800
committerJunio C Hamano <gitster@pobox.com>2020-03-05 10:43:02 -0800
commit2cbb0586697585995908c325a0c70aad37602274 (patch)
tree829da1f1b35211523f214783fc6350a37f62d38d /Documentation/gitcredentials.txt
parent25063e2530e2fbdccf5d372a8ad80309421c9df1 (diff)
parent46fd7b390034eb5dde6a3f955e677c5260e4d10c (diff)
downloadgit-2cbb0586697585995908c325a0c70aad37602274.tar.gz
Merge branch 'bc/wildcard-credential'
A configuration element used for credential subsystem can now use wildcard pattern to specify for which set of URLs the entry applies. * bc/wildcard-credential: credential: allow wildcard patterns when matching config credential: use the last matching username in the config t0300: add tests for some additional cases t1300: add test for urlmatch with multiple wildcards mailmap: add an additional email address for brian m. carlson
Diffstat (limited to 'Documentation/gitcredentials.txt')
-rw-r--r--Documentation/gitcredentials.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/gitcredentials.txt b/Documentation/gitcredentials.txt
index 5b9d14fb1f..1814d2d23c 100644
--- a/Documentation/gitcredentials.txt
+++ b/Documentation/gitcredentials.txt
@@ -131,7 +131,9 @@ context would not match:
because the hostnames differ. Nor would it match `foo.example.com`; Git
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.
+match: Git compares the protocols exactly. However, you may use wildcards in
+the domain name and other pattern matching techniques as with the `http.<url>.*`
+options.
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