Re: [GIT PULL] HID for 6.11
From: Jacob Keller
Date: Tue Aug 06 2024 - 18:08:38 EST
On 7/22/2024 6:51 AM, Benjamin Tissoires wrote:
> Is there anything we can do to rip off that commit from the tree and fix
> b4?
>
>
A bit late, but I just got bit by this comment and i worked around it
using a replace ref:
$ git replace --edit 3a904d2c771115154380caaae7ffaaf0095fb88f
This let me generate a replacement commit with an edited commit message
so that b4 scanning for a commit won't find this particular b4 meta-data.
It is only local (as refs/replace does not generally get shared to
others via normal push/pull) but it worked well for me.
I thought I would share this with other folks as a potential workaround
for their setup. replace refs are special refs which git will
automatically use in place of a regular commit when it finds a matching ref.
https://git-scm.com/docs/git-replace
Thanks,
Jake