From: Sven Verdoolaege Date: Tue, 13 Nov 2007 07:53:41 GMT Subject: Re: [PATCH 4/2] Fix parent rewriting in --early-output Message-ID: <20071113075341.GN2261MdfPADPa@greensroom.kotnet.org> In-Reply-To: On Mon, Nov 12, 2007 at 11:16:08PM -0800, Linus Torvalds wrote: > On Mon, 12 Nov 2007, Linus Torvalds wrote: > > > > I think the real problem is that "TREECHANGE" has the wrong polarity. It > > should default to always being set, and then we could actively clear it > > when we do the work to say "it's the same tree". Instead, we default it to > > being the same (which triggers parent rewriting), and only later may we > > notice that it wasn't the same. > > So, maybe the proper solution is to say "commits are assumed to be > different to their parents, but we have an explicit bit saying TREESAME > when we find them to be the same". FWIW, I like it. I had basically the same patch in my git-rewrite-commits series (except that I called it "PRUNED" instead of "TREESAME"), but I don't think I even sent it to the list, because I was told there was no use. skimo