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

Re: [PATCH] gitk: new option to hide prefetch refs

From
Derrick Stolee <stolee@gmail.com>
Date
Aug 24, 2021, 21:47 UTC
Message-ID
<f11f6920-aec2-ba5c-85ec-5b0cc5a2e880@gmail.com>
In-Reply-To
<xmqq4kbeptnv.fsf@gitster.g>
On 8/24/2021 2:46 PM, Junio C Hamano wrote:
Show 11 quoted lines
> Derrick Stolee <stolee@gmail.com> writes:
> 
>> On 8/24/2021 8:18 AM, Tal Kelrich via GitGitGadget wrote:
>>> From: Tal Kelrich <hasturkun@gmail.com>
>>>
>>> The maintenance 'prefetch' task creates refs that mirror remote refs,
>>> and in repositories with many branches this can clutter the commit list.
>>>
>>> Add a new option to ignore any prefetch refs, enabled by default.
>>
>> This seems like a sensible feature to add. Thank you for contributing!
...> I would usually say that defaulting this to 'on' would be a biased
Show 5 quoted lines
> choice [*1*], but in this case I tend to think it is a good idea to
> hide these by default, as 'prefetch' came way after people started
> using Git, and users did not ask for 'prefetch' refs.  The prefetching
> may help users but the refs used to anchor the prefetched objects are
> implementation detail that the users would rather not to see.
...
> *1* Whenever the inventor of a feature says "I expect users would
> want this!", it needs to be taken with a moderate amount of salt, as
> the inventor is self selected specimen who wanted it (after all, the
> feature motivated the inventor enough to write the patch).

I agree with both points. As the inventor of prefetch refs, my opinion should also be taken with similar salt.

I do want to add at least that Git itself hides these refs by modifying log.excludeDecoration during 'git maintenance start', so there is precedent. Git is hiding them, but user can become confused when they appear in gitk.

Thanks, -Stolee

Previous: Junio C HamanoNext: Tal Kelrich
Message 4 of 6 in “gitk: new option to hide prefetch refs”
  1. gitk: new option to hide prefetch refsTal Kelrich via GitGitGadget, Aug 24, 2021
  2. Derrick StoleeAug 24, 2021
  3. Junio C HamanoAug 24, 2021
  4. Derrick StoleeAug 24, 2021
  5. gitk: new option to hide prefetch refsTal Kelrich, Mar 5, 2024
  6. Johannes SchindelinMar 16, 2025

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.