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

Re: Suggestion: git fetch <remote> <branch> to update remote-tracking branch

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 5, 2012, 17:42 UTC
Message-ID
<7vmx7v0wrw.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4F54EDC1.80608@gmail.com>
Antony Male <antony.male@gmail.com> writes:
> What do people think?

I think this was discussed number of times here, and my vague recollection of the conclusion last time is that it would be OK to change the behaviour of single-shot fetch "fetch <remote> <branch>" against a remote where there is already a default fetch refspec that covers the <branch> so that such a fetch will update the remote tracking branch that usually copies from <branch> (and only that one).

We might need a proper deprecation and migration plan, though. I say "might" because offhand I don't know what the extent of damages to existing users' habits will be if we didn't offer any.

Previous: Antony MaleNext: Jeff King
Message 2 of 3 in “Suggestion: git fetch <remote> <branch> to update remote-tracking branch”
  1. Antony MaleMar 5, 2012
  2. Junio C HamanoMar 5, 2012
  3. Jeff KingMar 6, 2012

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.