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

Re: [RFC] Moving "git remote add --mirror blah" functionality to "git clone --bare --origin=blah"

From
Paolo Bonzini <bonzini@gnu.org>
Date
Apr 23, 2008, 20:06 UTC
Message-ID
<480F96A8.6020304@gnu.org>
In-Reply-To
<7vhcdstv0f.fsf@gitster.siamese.dyndns.org>
Show 5 quoted lines
> *1* In that sense, a more sensible order than rewriting "clone" in C in
> its current form would be to make necessary enhancements to the components
> in this sequence that need to implement clone, figure out how they should
> fit together and first make "clone" a four-liner shell script. Then
> rewriting the result in C may become more trivial.

On the other hand, a C version may have the necessary APIs available to support this kind of enhancement, but the APIs may not be there for a shell script.

It seems useless to have an option in "git remote add" just because it might be necessary in a future refactoring of "git clone", but without a good use case beside that one -- because right now "git remote add --mirror" is close to useless: anyone who needs it 99% of the time knows how to hack the config, unlike people who just want a quick way to remotely backup of their repository.

Paolo
Previous: Jeff KingNext: Junio C Hamano
Message 6 of 9 in “[RFC] Moving "git remote add --mirror blah" functionality to "git clone --bare --origin=blah"”
  1. Paolo BonziniApr 23, 2008
  2. Johannes SchindelinApr 23, 2008
  3. Junio C HamanoApr 23, 2008
  4. Daniel BarkalowApr 23, 2008
  5. Jeff KingApr 23, 2008
  6. Paolo BonziniApr 23, 2008
  7. Junio C HamanoApr 23, 2008
  8. Johannes SchindelinApr 23, 2008
  9. Paolo BonziniApr 24, 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.