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

Re: `seen' datapoint [

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 29, 2020, 01:22 UTC
Message-ID
<xmqqy2o6fyxl.fsf@gitster.c.googlers.com>
In-Reply-To
<20200628192227.GA20227@dcvr>
Eric Wong <e@yhbt.net> writes:
> So I had receive.denyNonFastforwards=true set, and a
> special cases for `pu':
>
> 	fetch = +refs/heads/pu:refs/remotes/origin/pu

Hmph. I thought receive.denyNonFastforwards was for pushing into the repository, so it is a bit puzzling that you bring up "only updates to fetch into 'pu' is allowed to be forced" like this. Such an arrangement would let you know when 'next' got rewound, which is another plus ;-)

> Which necessitated s/pu/seen/.  So I wonder if there's other
> denyNonFastforwards users out there affected.  Anyways, just
> a data point...

I can sort-of see how the special case would work, but what makes your setting fetch other branches like 'master', 'todo', and 'next'?

Do you have a separate "fetch" refspec for each of the ones you are interested in?

Or "remote.origin.fetch = refs/heads/*:refs/remotes/origin/*" which serves as the default catch-all (which overlaps with the "pu can be fast forwarded" you showed---I don't recall how we designed such a set-up to work offhand, so I am a bit curious) works as a natural "require fast-forward in general, but a more specific rule about 'pu' allows non-fast-forward updates"?

Previous: Eric WongNext: Eric Wong
Message 6 of 9 in “What's cooking in git.git (Jun 2020, #04; Mon, 22)”
  1. Junio C HamanoJun 23, 2020
  2. Jeff KingJun 23, 2020
  3. Johannes SchindelinJun 23, 2020
  4. Junio C HamanoJun 23, 2020
  5. `seen' datapoint [was: What's cooking in git.git (Jun 2020, #04; Mon, 22)]Eric Wong, Jun 28, 2020
  6. Junio C HamanoJun 29, 2020
  7. Eric WongJun 29, 2020
  8. Jeff KingJun 29, 2020
  9. Eric WongJun 29, 2020

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.