3 test_description='git-filter-branch'
7 lower=$(echo $1 | tr A-Z a-z)
15 test_expect_success 'setup' '
18 git checkout -b branch B
32 test_expect_success 'rewrite identically' '
36 test_expect_success 'result is really identical' '
37 test $H = $(git-rev-parse H2)
40 test_expect_success 'rewrite, renaming a specific file' '
41 git-filter-branch --tree-filter "mv d doh || :" H3
44 test_expect_success 'test that the file was renamed' '
45 test d = $(git show H3:doh)
49 test_expect_success 'rewrite one branch, keeping a side branch' '
50 git-filter-branch --tree-filter "mv b boh || :" modD D..oldD
53 test_expect_success 'common ancestor is still common (unchanged)' '
54 test "$(git-merge-base modD D)" = "$(git-rev-parse B)"