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

Re: [PATCH] Teach git push .git/branches shorthand

From
Matthias Urlichs <smurf@smurf.noris.de>
Date
Aug 11, 2005, 16:29 UTC
Message-ID
<pan.2005.08.11.16.29.34.384813@smurf.noris.de>
In-Reply-To
<200508081822.24582.Josef.Weidendorfer@gmx.de>
Hi, Josef Weidendorfer wrote:
> My understanding of .git/branches was that Cogito uses this as mapping of 
> remote branches/heads to local branches/refs, and not to store shortcuts for 
> remote git repositories.
That seems to be the case, yes.

I'd argue that the shortcut idea is inherently more flexible, as it can emulate mappings, but not vice versa -- for instance, if my local branch foo corresponds to more than one remote branch, .git/branches/* cannot comprehend that idea.

That being said, I do like Junio's
>>    $ cat .git/remotes/ko
>>    URL: kernel.org:/pub/scm/git/git.git/
>>    Fetch-Reference: master:ko-master pu:ko-pu rc:ko-rc
>>    Push-Reference: master pu rc
idea. A lot.
-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
Sometimes I think my head is like a gas tank -- you have to be really
careful what you put into it 'cos it might affect the whole system.
-- I'VE HEARD THE MERMAIDS SINGING
Previous: Junio C HamanoNext: Darrin Thompson
Message 9 of 11 in “Teach git push .git/branches shorthand”
  1. Teach git push .git/branches shorthandJunio C Hamano, Aug 8, 2005
  2. Johannes SchindelinAug 8, 2005
  3. Josef WeidendorferAug 8, 2005
  4. Johannes SchindelinAug 8, 2005
  5. Josef WeidendorferAug 8, 2005
  6. Johannes SchindelinAug 8, 2005
  7. Josef WeidendorferAug 8, 2005
  8. Junio C HamanoAug 9, 2005
  9. Matthias UrlichsAug 11, 2005
  10. Darrin ThompsonAug 9, 2005
  11. Junio C HamanoAug 9, 2005

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.