git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Philip Oakley <philipoakley@iee.email>
To: Jeff King <peff@peff.net>
Cc: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>,
	"Git List" <git@vger.kernel.org>,
	"Johannes Schindelin" <johannes.schindelin@gmx.de>
Subject: Re: Trimming 'deadheads' (TREESAME 2nd parent) from revision walks?
Date: Tue, 21 Sep 2021 19:24:59 +0100	[thread overview]
Message-ID: <be7ec330-2b2c-a01f-c7ca-e5e752493ee0@iee.email> (raw)
In-Reply-To: <9b85811f-de5d-24b3-36f6-7e2f9be6cae0@iee.email>

On 21/09/2021 14:36, Philip Oakley wrote:
> The `theirs` strategy is really only suitable for maintainers, rather
> than solo coders, as it need to be 'old releases` that are kept, rather
> 'old cruft` (I've generated too much of that in my time).
>
> Dscho's scripts (for anyone interested) for GfW are in
> https://github.com/git-for-windows/build-extra/blob/main/shears.sh#L16-L18
> and 
> https://github.com/git-for-windows/build-extra/blob/main/ever-green.sh,
> though from the script perspective it's an 'ours' strategy.
>
> Dscho has to locate the start commit via it's subject line, rather than
> it's topology.

It's taken me a while to realise why/how Dscho is using 'ours', for a
'theirs' merge.

He is inserting that merge into the start of the --merging-rebase's
instruction sheet, which means that the rebase itself will reverse the
meaning of 'ours' and 'theirs' as it checks out the 'theirs' branch
first before performing the actions in the instruction sheet.

Thus the 'ours' strategy now works in our favour, to effectively
deadhead the old hear as a 'theirs' merge and then begin the rebasing of
the Git-for-Windows patch thicket on top of the latest Git.

Sneaky.

--
Philip
(added dscho as cc, just in case I've got it wrong again;-)

  reply	other threads:[~2021-09-21 18:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-18 14:18 Trimming 'deadheads' (TREESAME 2nd parent) from revision walks? Philip Oakley
2021-09-19 18:59 ` Jeff King
2021-09-19 23:44   ` Ævar Arnfjörð Bjarmason
2021-09-20 11:40     ` Philip Oakley
2021-09-20 20:50       ` Jeff King
2021-09-21 13:36         ` Philip Oakley
2021-09-21 18:24           ` Philip Oakley [this message]
2021-10-05 10:53 ` Johannes Schindelin
2021-10-06 14:03   ` Philip Oakley

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=be7ec330-2b2c-a01f-c7ca-e5e752493ee0@iee.email \
    --to=philipoakley@iee.email \
    --cc=avarab@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=johannes.schindelin@gmx.de \
    --cc=peff@peff.net \
    /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).