git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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*
Previous: pasky@suse.czNext: Shawn O. Pearce
Message 8 of 9 in “git-gui: Support for "Locators" - address templates”
  1. 0/5 git-gui: Support for "Locators" - address templatespasky@suse.cz, Sep 24, 2008
  2. 1/5 git-gui: Avoid using the term URL when specifying repositoriespasky@suse.cz, Sep 24, 2008
  3. 2/5 git-gui: Make input boxes in init/clone/open dialogs consistentpasky@suse.cz, Sep 24, 2008
  4. 3/5 git-gui: Squash populate_{push,fetch}_menu to populate_remotes_menupasky@suse.cz, Sep 24, 2008
  5. Petr BaudisSep 24, 2008
  6. 4/5 git-gui: Factor out URL inputbox construction to location_inputpasky@suse.cz, Sep 24, 2008
  7. 5/5 git-gui: Support for user-provided locator templatespasky@suse.cz, Sep 24, 2008
  8. Daniel BarkalowSep 25, 2008
  9. Shawn O. PearceSep 26, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.