From: D. Ben Knoble Date: Mon, 10 Feb 2025 17:51:23 GMT Subject: Re: renormalize histroy with smudge/clean-filter Message-ID: In-Reply-To: <20250209085756.GL30202@raven.inka.de> On Sun, Feb 9, 2025 at 3:58 AM Josef Wolf wrote: > > 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