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

Re: Did config `branch.<name>.fetch` ever exist?

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 8, 2023, 04:35 UTC
Message-ID
<xmqqfsclzlqx.fsf@gitster.g>
In-Reply-To
<CAEg0tHSLyaewkgGs0dEXfwQhKmbiO65bXZVU8t7Kn4WwJ1p0Fw@mail.gmail.com>
muzimuzhi Z <muzimuzhi@gmail.com> writes:
Show 16 quoted lines
> Git configuration `branch.<name>.fetch` is mentioned in the first
> `git-fetch` example [1]:
>
>> - Update the remote-tracking branches:
>>       $ git fetch origin
>>   The above command copies all branches from the remote
>>   refs/heads/ namespace and stores them to the local
>>   refs/remotes/origin/ namespace, unless the branch.<name>.fetch
>>   option is used to specify a non-default refspec.
>
> But I can't find its doc in `git-config`'s doc. Did
> `branch.<name>.fetch` ever exist?
>
> Searching in `git-config`'s doc for configs starting with `branch.` or
> ending with `.fetch`, it seems `branch.<name>.fetch` is a typo of
> `remote.<name>.fetch`.
Correct.  Care to send a patch to correct it?
Thanks.
Previous: muzimuzhi ZNext: muzimuzhi Z
Message 2 of 7 in “Did config `branch.<name>.fetch` ever exist?”
  1. muzimuzhi ZJan 7, 2023
  2. Junio C HamanoJan 8, 2023
  3. doc: fix non-existing config namemuzimuzhi Z, Jan 9, 2023
  4. muzimuzhi ZJan 9, 2023
  5. Junio C HamanoJan 13, 2023
  6. doc: fix non-existent config namemuzimuzhi Z, Jan 14, 2023
  7. Junio C HamanoJan 14, 2023

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.