summaryrefslogtreecommitdiff
path: root/Documentation/git-revert.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-25 06:25:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-25 06:34:13 (GMT)
commit844112cac07d6413b9bb42d38527d2f7ca7c7801 (patch)
tree87413bdc1d9a5c1e85213cd54f7e5454d37e7b2b /Documentation/git-revert.txt
parent55029ae4dac07942437c0c715ea7c8ac60dd3576 (diff)
downloadgit-844112cac07d6413b9bb42d38527d2f7ca7c7801.zip
git-844112cac07d6413b9bb42d38527d2f7ca7c7801.tar.gz
git-844112cac07d6413b9bb42d38527d2f7ca7c7801.tar.bz2
url rewriting: take longest and first match
Earlier we had a cop-out in the documentation to make the behaviour "undefined" if configuration had more than one insteadOf that would match the target URL, like this: [url "git://git.or.cz/"] insteadOf = "git.or.cz:" ; (1) insteadOf = "repo.or.cz:" ; (2) [url "/local/mirror/"] insteadOf = "git.or.cz:myrepo" ; (3) insteadOf = "repo.or.cz:" ; (4) It would be most natural to take the longest and first match, i.e. - rewrite "git.or.cz:frotz" to "git://git.or.cz/frotz" by using (1), - rewrite "git.or.cz:myrepo/xyzzy" to "/local/mirror/xyzzy" by favoring (3) over (1), and - rewrite "repo.or.cz:frotz" to "git://git.or.cz/frotz" by favoring (2) over (4). Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-revert.txt')
0 files changed, 0 insertions, 0 deletions