Code

Okay, that was a little too aggressive.
authorAvery Pennarun <apenwarr@gmail.com>
Sat, 25 Apr 2009 02:36:06 +0000 (22:36 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Sat, 25 Apr 2009 02:38:58 +0000 (22:38 -0400)
commit96db2c0448c2f6040c098d73570a96413338c662
tree43c6512b7d3dd362c8d50c705b70752ebb51d9c0
parentd691265880abea4428783beb858683be56f3b340
Okay, that was a little too aggressive.

Now we only prune out a commit if it has exactly one remaining parent and
that parent's tree is identical to ours.

But I also changed the test to create the initial "-s ours" merge in one
step instead of two, and that merge can be eliminated since one of its
parents doesn't affect the subdir at all, and is thus deleted.
git-subtree.sh
test.sh