author | Avery Pennarun <apenwarr@gmail.com> | |
Sat, 25 Apr 2009 02:36:06 +0000 (22:36 -0400) | ||
committer | Avery Pennarun <apenwarr@gmail.com> | |
Sat, 25 Apr 2009 02:38:58 +0000 (22:38 -0400) | ||
commit | 96db2c0448c2f6040c098d73570a96413338c662 | |
tree | 43c6512b7d3dd362c8d50c705b70752ebb51d9c0 | tree | snapshot |
parent | d691265880abea4428783beb858683be56f3b340 | commit | diff |
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.
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 | diff | blob | history | |
test.sh | diff | blob | history |