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

Re: [PATCH/RFC] Allow "git remote --mirror" to mirror stashes

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 31, 2008, 00:19 UTC
Message-ID
<7vve33vj7a.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LNX.1.00.0803281124240.19665@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
> On Thu, 27 Mar 2008, Junio C Hamano wrote:
>
> Maybe it shouldn't do any filtering here, and instead do it in 
> cmd_fetch_pack?
I dunno.  How would the code look like?
Show 5 quoted lines
> This is also true, although I'm not too sure that we won't want to do 
> things like having "refs/default" in a public repository be the 
> repository's suggestion for the default branch (to replace "HEAD", 
> because, in a world where people use lots of branches, the "current 
> branch" idea and the "default branch" idea aren't really the same idea, 

In a public repository with many branches to serve people with different interests, I do not think a single refs/default in addition to HEAD would help that much. We would _not_ want to have more magic refs like HEAD.

Quite the opposite. In such a repository, HEAD means even less, and instead of giving an extra layer of indirection, you tell people which branches are what in your repository. "If you are interested in only the bugfixes without any new features since the last feature lease no matter how solid and tested they are, use 'maint' branch. If you want solid and tested features, and do not mind new features, use 'master'. Etc.".

And just like a good API names its functions sensibly, you give meaningful names to your branches, so that you do not _need_ that extra layer of indirection refs/default would incur.

Previous: Daniel BarkalowNext: Daniel Barkalow
Message 15 of 16 in “git remote --mirror bug?”
  1. Joakim TjernlundMar 14, 2008
  2. Joakim TjernlundMar 15, 2008
  3. Re* git remote --mirror bug?Junio C Hamano, Mar 16, 2008
  4. remote/clone bug: Stale tracking branch HEADTeemu Likonen, Mar 16, 2008
  5. On fetch refspecs and wildcardsJunio C Hamano, Mar 16, 2008
  6. Junio C HamanoMar 16, 2008
  7. Daniel BarkalowMar 16, 2008
  8. Junio C HamanoMar 17, 2008
  9. Daniel BarkalowMar 17, 2008
  10. Johannes SchindelinMar 18, 2008
  11. Junio C HamanoMar 18, 2008
  12. Johannes SchindelinMar 19, 2008
  13. Allow "git remote --mirror" to mirror stashesJunio C Hamano, Mar 28, 2008
  14. Daniel BarkalowMar 28, 2008
  15. Junio C HamanoMar 31, 2008
  16. Daniel BarkalowMar 31, 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.