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

Re: [PATCH 2/2] Add support for url aliases in config files

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Feb 25, 2008, 06:35 UTC
Message-ID
<alpine.LNX.1.00.0802250130310.19024@iabervon.org>
In-Reply-To
<7vfxvho8r7.fsf@gitster.siamese.dyndns.org>
On Sun, 24 Feb 2008, Junio C Hamano wrote:
Show 23 quoted lines
> Daniel Barkalow <barkalow@iabervon.org> writes:
> 
> > Thanks; that's exactly what I would have done (assuming I didn't miss 
> > places like last time). Except that it should say that it's still 
> > undefined if you use:
> >
> >         [url "foo"]
> >                 insteadOf = "baz"
> >         [url "bar"]
> >                 insteadOf = "baz/sub"
> >
> > in that you can't predict whether "baz/sub/a" will be "bar/a" or 
> > "foo/sub/a". This is actually what I'm most concerned about, since there 
> > is actually a logical expectation (the one that matches more will be used 
> > in preference to the less specific one), but that's not implemented. 
> > Someday, we'll probably want to implement it, and that'll change the 
> > behavior of this particular case.
> 
> I'd say that that is a reasonable expectation, and it would be
> fair to say that if we have it, the topic will be in 1.5.5 and
> otherwise it won't.
> 
> This might be a bit over-engineered, but should do the job.

Very nice. And if we've got your over-engineered prefix-replacement code here, maybe I'll use it to also do the prefix-replacement for refspec patterns.

Acked-by: Daniel Barkalow <barkalow@iabervon.org>
	-Daniel
*This .sig left intentionally blank*
Previous: Junio C HamanoNext: Jon Loeliger
Message 18 of 22 in “Add support for url aliases in config files”
  1. 2/2 Add support for url aliases in config filesDaniel Barkalow, Feb 20, 2008
  2. Junio C HamanoFeb 20, 2008
  3. Daniel BarkalowFeb 20, 2008
  4. Junio C HamanoFeb 20, 2008
  5. Jay SoffianFeb 20, 2008
  6. Daniel BarkalowFeb 20, 2008
  7. しらいしななこFeb 20, 2008
  8. Johannes SchindelinFeb 20, 2008
  9. Junio C HamanoFeb 21, 2008
  10. Jay SoffianFeb 21, 2008
  11. Linus TorvaldsFeb 21, 2008
  12. Jay SoffianFeb 21, 2008
  13. Daniel BarkalowFeb 21, 2008
  14. Junio C HamanoFeb 21, 2008
  15. Junio C HamanoFeb 25, 2008
  16. Daniel BarkalowFeb 25, 2008
  17. Junio C HamanoFeb 25, 2008
  18. Daniel BarkalowFeb 25, 2008
  19. Jon LoeligerFeb 21, 2008
  20. Jay SoffianFeb 20, 2008
  21. Junio C HamanoFeb 20, 2008
  22. Jay SoffianFeb 20, 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.