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

Re: feature request: set remote/HEAD with fetch

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 19, 2024, 16:40 UTC
Message-ID
<c10652f9-3cf8-e1b3-27f3-63fd5b8ac52a@gmx.de>
In-Reply-To
<D3IF2EVJPNMX.CFNKJQDPHZQ0@ferdinandy.com>
Hi Bence,
On Sat, 17 Aug 2024, Bence Ferdinandy wrote:
Show 9 quoted lines
>
> > There was discussion a while ago that proposed a tri-state config
> > option: never update the remote head on fetch, always do so, or add it
> > only when missing:
> >
> >   https://lore.kernel.org/git/20201118091219.3341585-1-felipe.contreras@gmail.com/
>
> Thanks for linking that, I didn't think about searching for old discussion
> before writing ...

A better link (in particular because it does not involve a now-banned person) might be https://lore.kernel.org/git/CANWRddN4R6AceeaOyZm1vs8AXBNv3J+cE5MOyrhKVhcqddjUOA@mail.gmail.com/

This discussion might not be about that mentioned tri-state, but about the "take a step back" question: What is the best way to update a remote-tracking `HEAD`.

Show 11 quoted lines
> > I think that is a good first step, as we could stop there and leave the
> > default at "never" without any compatibility issues (and/or contemplate
> > a change in the default as a separate step).
> >
> > I don't think the patch in that thread is likely to go anywhere at this
> > point, but if somebody wanted to pick it up, I think everybody was
> > positive on the general direction.
>
> My C skills aren't great (probably an overstatement), but if Felipe or somebody
> else more qualified than me doesn't want to pick this up, I'm willing to give
> it a shot based on the Felipe's patch. It will take some time though :)

I dropped him from the Cc:, as a consequence of https://lore.kernel.org/git/ZF%2F38DXNYMsZjvy4@nand.local/.

Since this leaves you in somewhat of a pickle because you probably should not start from those patches, and since you seem to be in the same time zone as I am, I'll offer you to pair with you on getting you started. If you are interested, please just reply privately.

Ciao, Johannes

Previous: Bence FerdinandyNext: Bence Ferdinandy
Message 6 of 7 in “feature request: set remote/HEAD with fetch”
  1. Bence FerdinandyAug 16, 2024
  2. brian m. carlsonAug 16, 2024
  3. Junio C HamanoAug 16, 2024
  4. Jeff KingAug 17, 2024
  5. Bence FerdinandyAug 17, 2024
  6. Johannes SchindelinAug 19, 2024
  7. Bence FerdinandyAug 20, 2024

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.