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

Re: [PATCH] cg-pull to stop treating "master" specially, fix fetch_local for .git/HEAD

From
JWJosef Weidendorfer <josef.weidendorfer@gmx.de>
Date
Nov 11, 2005, 14:22 UTC
Message-ID
<200511111522.37979.Josef.Weidendorfer@gmx.de>
In-Reply-To
<1131684784.31172.16.camel@dv>
On Friday 11 November 2005 05:53, Pavel Roskin wrote:
Show 6 quoted lines
> I'm not sure if we understand each other, but "recorded" refers to
> automatically determined branch name.  If cg-clone can determine the
> branch name, that name should be saved and used for updates.
> 
> Whether the branch name is saved in .git/branches/ using hash notation
> (old style) or in .git/remotes/ (new style) is irrelevant.

Yes. But for the conrete implementation it is relevant.

AFAIK, there is not really a "new" and "old" style, but more the git way (attributes for remote repositories in .git/remotes) and the Cogito way (attributes for a remote branch).

"Recording" talks about storing the name of the remote branch that maps to the local "origin" branch, so I would vote for storing this in .git/branches/origin.

For cg-clone, this is no problem because cg-clone writes this file itself. Another thing is if you add later on a remote branch with cg-branch-add without specifying a concrete remote branch name. Do we want the record the branch name at the first cg-fetch for the future?

> That's why I mentioned the idea of having a separate file to indicate
> the default branch for export.
Agree.
Josef
Previous: Pavel RoskinNext: Pavel Roskin
Message 11 of 13 in “cg-pull to stop treating "master" specially, fix fetch_local for .git/HEAD”
  1. cg-pull to stop treating "master" specially, fix fetch_local for .git/HEADPavel Roskin, Aug 23, 2005
  2. Petr BaudisNov 10, 2005
  3. Pavel RoskinNov 10, 2005
  4. Josef WeidendorferNov 10, 2005
  5. Petr BaudisNov 10, 2005
  6. Josef WeidendorferNov 10, 2005
  7. Petr BaudisNov 11, 2005
  8. Pavel RoskinNov 11, 2005
  9. Josef WeidendorferNov 11, 2005
  10. Pavel RoskinNov 11, 2005
  11. Josef WeidendorferNov 11, 2005
  12. Pavel RoskinNov 11, 2005
  13. Josef WeidendorferNov 11, 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.