From: Jakub Narebski Date: Fri, 25 Jan 2008 21:48:11 GMT Subject: Re: [PATCH] Add support for host aliases in config files Message-ID: <200801252248.12682.jnareb@gmail.com> In-Reply-To: Daniel Barkalow wrote: > So, something like: > > diff --git a/Documentation/urls.txt b/Documentation/urls.txt > index 81ac17f..f47b9e0 100644 > --- a/Documentation/urls.txt > +++ b/Documentation/urls.txt > @@ -36,6 +36,29 @@ To sync with a local directory, you can use: > - file:///path/to/repo.git/ > =============================================================== > > +If there are a large number of similarly-named remote repositories and > +you want to use a different format for them (such that the URLs you > +use will be rewritten into URLs that work), you can create a > +configuration section of the form: > + > +------------ > + [host ""] > + base = > + alias = > +------------ > + > +In particular, if you need to use URLs like > +git://git.host.xz/repo.git, and you're getting a lot of URLs like > +host.xz:/path/to/repo.git/, or you'd like to use a URL like > +"work:repo.git" you can use a section: > + > +------------ > + [host "host.xz"] > + base = git://git.host.xz/ > + alias = host.xz:/path/to/ > + alias = work: > +------------ > + Could you _finish_ that documentation with finished example of command line example, which gets its URL rewritten? It stops a bit suddenly. -- Jakub Narebski Poland