Re: renormalize histroy with smudge/clean-filter
- From
D. Ben Knoble <ben.knoble@gmail.com>
- Date
- Feb 10, 2025, 17:51 UTC
- Message-ID
- <CALnO6CBh0UDSeR4Q1VfU7vdSvHFYuO=j_rijVpAE-YH9V=Cqew@mail.gmail.com>
- In-Reply-To
- <20250209085756.GL30202@raven.inka.de>
On Sun, Feb 9, 2025 at 3:58 AM Josef Wolf <jw@raven.inka.de> wrote:
Show 11 quoted lines
> > On Sat, Feb 08, 2025 at 11:21:12PM -0800, Elijah Newren wrote: > > Yes, I was surprised Phillip's command with --attr-source on the > > outer-level git invocation worked until I discovered that the code > > indeed sets the environment variable (which subprocesses, like those > > created by the --exec/-x switch, will inherit). So, yes, the -x > > switch stuff seems to inherit that environment variable that the > > primary call sets in response to that parameter. > > Umm... OK... This means that specifying --attr-source to the commands for the > -x switch is wrong, since they have a different HEAD?
Not quite: the command actually did
> git --attr-source=$(git rev-parse HEAD) […]
So the subprocesses will see the attributes source as a full-length commit hash, not "HEAD"
-- D. Ben Knoble