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

Re: git fetch documentation problem or bug

From
DNDrew Northup <n1xim.email@gmail.com>
Date
Oct 21, 2012, 12:15 UTC
Message-ID
<CAM9Z-nnKTq0C9wPA=JKZ3qzTmL3NVisfy=rbjjq1yKEVrN53FQ@mail.gmail.com>
In-Reply-To
<7vpq4silou.fsf@alter.siamese.dyndns.org>
On Mon, Oct 8, 2012 at 7:33 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 10 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> In other words, you can do this from the command line if you want
>> to do the update.
>>
>>   $ git fetch origin master:refs/remotes/origin/master
>
> Now having said all that, we should probably revisit this and
> possibly other issues and for the ones we can reach concensus, start
> coding after 1.8.0 final.
Show 14 quoted lines
>  * "git fetch $from $branch..." to update tracking branches
>
>    This is the topic in this thread.
>
> I personally do not think the downside of breaking backward
> compatibility is too bad.  If we do this only when we already are
> configured to keep remote tracking branch for branch $branch from
> remote $from (it has to be given as a nickname, not URL that happens
> to have an entry in the configuration), then a promiscuous fetch
> that grabs from a URL (or a nickname that is configured not to keep
> tracking branches) will not change any behaviour, and when you want
> to keep your remote tracking branch intact while doing one-shot
> fetch for whatever reason, you can say "git fetch $from $branch:" to
> explicitly decline copying.
How are we supposed to remember those are different?

"git fetch $from $branch..." VS "git fetch $from $branch:"

I strongly prefer EXPLICITLY setting tracking than expecting some extreme syntactic nuance to quietly do it for me now and confuse the heck out of me later.

-- 
-Drew Northup
--------------------------------------------------------------
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59
Previous: Nguyen Thai Ngoc DuyNext: Junio C Hamano
Message 6 of 7 in “git fetch documentation problem or bug”
  1. Angelo BorsottiOct 8, 2012
  2. Junio C HamanoOct 8, 2012
  3. Junio C HamanoOct 8, 2012
  4. Junio C HamanoOct 8, 2012
  5. Nguyen Thai Ngoc DuyOct 9, 2012
  6. Drew NorthupOct 21, 2012
  7. Junio C HamanoOct 21, 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.