Re: renormalize histroy with smudge/clean-filter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Feb 9, 2025 at 3:58 AM Josef Wolf <jw@xxxxxxxxxxxxx> 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





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux