die "Could not checkout the index"
# files that $commit removed are now still in the working tree;
# remove them, else they would be added again
eval "$filter_tree" < /dev/null ||
die "tree filter failed: $filter_tree"
git-filter-branch -f --tree-filter "mv dir diroh || :" HEAD
failure 'test that the directory was renamed' '
+test_expect_ 'test that the directory was renamed' '
test dir/d = "$(git show HEAD:diroh/d --)" &&