]> git.ipfire.org Git - thirdparty/git.git/commit - remote.c
Add support for url aliases in config files
authorDaniel Barkalow <barkalow@iabervon.org>
Wed, 20 Feb 2008 18:43:53 +0000 (13:43 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Feb 2008 04:05:29 +0000 (20:05 -0800)
commit55029ae4dac07942437c0c715ea7c8ac60dd3576
treeb2e278bd16f852229e3a3149febb7df98171951b
parent2d31347ba5c56d43d64dfdfe04a924178ee55b75
Add support for url aliases in config files

This allows users with different preferences for access methods to the
same remote repositories to rewrite each other's URLs by pattern
matching across a large set of similiarly set up repositories to each
get the desired access.

For example, if you don't have a kernel.org account, you might want
settings like:

[url "git://git.kernel.org/pub/"]
      insteadOf = master.kernel.org:/pub

Then, if you give git a URL like:

  master.kernel.org:/pub/scm/linux/kernel/git/linville/wireless-2.6.git

it will act like you gave it:

  git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git

and you can cut-and-paste pull requests in email without fixing them
by hand, for example.

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/urls.txt
remote.c
t/t5516-fetch-push.sh