29 Jan 2011 01:02
Re: Can't find the revelant commit with git-log
Junio C Hamano <gitster <at> pobox.com>
2011-01-29 00:02:58 GMT
2011-01-29 00:02:58 GMT
René Scharfe <rene.scharfe <at> lsrfire.ath.cx> writes: > Subject: pickaxe: don't simplify history too much > > If pickaxe is used, turn off history simplification and make sure to keep > merges with at least one interesting parent. > > If path specs are used, merges that have at least one parent whose files > match those in the specified subset are edited out. This is good in > general, but leads to unexpectedly few results if used together with > pickaxe. Merges that also have an interesting parent (in terms of -S or > -G) are dropped, too. > > This change makes sure pickaxe takes precedence over history > simplification. Hmmm, I understand the _motivation_ behind the change in the second hunk, in that you _might_ want to dig the side branch that did not contribute anything to the end result when looking for a needle with either -S or -G, but doesn't the same logic apply to things like --grep? I do not think it is a good idea to unconditionally disable simplification for -S/G without a way for the user to countermand (even though I could be persuaded to say that the flipping the default for -S/-G/--grep might have been a better alternative in hindsight). The user can control this behaviour by giving or not giving --simplify from the command line anyway, no? As to the first hunk, I have no idea why this is a good change.(Continue reading)
RSS Feed