Re: [PATCH 0/5] git-gui: Support for "Locators" - address templates
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- Sep 25, 2008, 21:26 UTC
- Message-ID
- <alpine.LNX.1.00.0809251705260.19665@iabervon.org>
- In-Reply-To
- <20080924221249.037449176@suse.cz>
On Thu, 25 Sep 2008, pasky@suse.cz wrote:
Show 11 quoted lines
> This patch allows "locators" to be configured and used in the GUI, > basically as URL templates the input string is subsituted into. > The default operation of git-gui is not much affected (only some > labels change to be less confusing). > > This is aimed mainly at corporate Git deployments - the integrator > might want to configure the central corporate repository store as > the default locator so that people do not need to type the same > URL over and over but can instead just type the repository name > on the server. Or avid repo.or.cz users might set up a 'repo' > locator pointing at 'git://repo.or.cz/%s'.
Can this be set up to use the "url.<base>.insteadOf" configuration? Part of my goal with that feature was to make it easy for me to reference projects on my work's central repository store. That is, put in your ~/gitconfig:
[url "git://repo.or.cz/"] insteadOf = repo:
And "git clone repo:alt-git" works.
It'd be nice to share the config somehow so that the same settings can be used both in git-gui and on the command line. (I wrote the code so that a user can swap patterns of URLs work for other people but aren't good for that particular user, but it also applies to user-provided shorthand URLs.)
-Daniel *This .sig left intentionally blank*