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

Re: [RFC] git-remote

From
Andreas Ericsson <ae@op5.se>
Date
Jan 9, 2007, 09:22 UTC
Message-ID
<45A35EED.5090105@op5.se>
In-Reply-To
<7vr6u4sq9e.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 9 quoted lines
> "J. Bruce Fields" <bfields@fieldses.org> writes:
> 
>> Would it make sense for "git add" to do the initial fetch as well?
> 
> It would be handy.
> 
> And perhaps we could make it the default but with a command line
> override to help disconnected people.
> 

I'd rather do it the other way around ("--fetch" switch) and if that wasn't supplied, tell the user that he should now run

	git fetch $whatever_name_was_supplied

The reason being it's easier to fetch afterwards than it is to undo the fetch if you didn't mean to do it straight away. Judging by its other uses, I also wouldn't expect the command to actually work over the network.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Junio C HamanoNext: J. Bruce Fields
Message 15 of 16 in “[RFC] git-remote”
  1. Junio C HamanoJan 3, 2007
  2. Jakub NarebskiJan 3, 2007
  3. Shawn O. PearceJan 5, 2007
  4. Junio C HamanoJan 5, 2007
  5. Shawn O. PearceJan 5, 2007
  6. Santi BéjarJan 5, 2007
  7. Johannes SchindelinJan 5, 2007
  8. Santi BéjarJan 5, 2007
  9. Carl WorthJan 5, 2007
  10. Junio C HamanoJan 6, 2007
  11. Carl WorthJan 8, 2007
  12. J. Bruce FieldsJan 9, 2007
  13. Junio C HamanoJan 9, 2007
  14. Junio C HamanoJan 9, 2007
  15. Andreas EricssonJan 9, 2007
  16. J. Bruce FieldsJan 10, 2007

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.