git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Eric Wong <e@yhbt.net>
Cc: git@vger.kernel.org
Subject: Re: `seen' datapoint [
Date: Sun, 28 Jun 2020 18:22:46 -0700	[thread overview]
Message-ID: <xmqqy2o6fyxl.fsf@gitster.c.googlers.com> (raw)
In-Reply-To: <20200628192227.GA20227@dcvr> (Eric Wong's message of "Sun, 28 Jun 2020 19:22:27 +0000")

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"?





  reply	other threads:[~2020-06-29  1:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-23  0:54 What's cooking in git.git (Jun 2020, #04; Mon, 22) Junio C Hamano
2020-06-23 10:00 ` Jeff King
2020-06-23 12:46 ` Johannes Schindelin
2020-06-23 19:16   ` Junio C Hamano
2020-06-28 19:22 ` `seen' datapoint [was: What's cooking in git.git (Jun 2020, #04; Mon, 22)] Eric Wong
2020-06-29  1:22   ` Junio C Hamano [this message]
2020-06-29  2:04     ` `seen' datapoint [ Eric Wong
2020-06-29 18:45       ` Jeff King
2020-06-29 19:03         ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqy2o6fyxl.fsf@gitster.c.googlers.com \
    --to=gitster@pobox.com \
    --cc=e@yhbt.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).