11#! /bin/sh
22
3- test_description=' git- filter-branch'
3+ test_description=' git filter-branch'
44. ./test-lib.sh
55
66make_commit () {
@@ -32,22 +32,22 @@ test_expect_success 'setup' '
3232H=$( git rev-parse H)
3333
3434test_expect_success ' rewrite identically' '
35- git- filter-branch branch
35+ git filter-branch branch
3636'
3737test_expect_success ' result is really identical' '
3838 test $H = $(git rev-parse HEAD)
3939'
4040
4141test_expect_success ' rewrite bare repository identically' '
42- (git config core.bare true && cd .git && git- filter-branch branch)
42+ (git config core.bare true && cd .git && git filter-branch branch)
4343'
4444git config core.bare false
4545test_expect_success ' result is really identical' '
4646 test $H = $(git rev-parse HEAD)
4747'
4848
4949test_expect_success ' rewrite, renaming a specific file' '
50- git- filter-branch -f --tree-filter "mv d doh || :" HEAD
50+ git filter-branch -f --tree-filter "mv d doh || :" HEAD
5151'
5252
5353test_expect_success ' test that the file was renamed' '
@@ -58,7 +58,7 @@ test_expect_success 'test that the file was renamed' '
5858'
5959
6060test_expect_success ' rewrite, renaming a specific directory' '
61- git- filter-branch -f --tree-filter "mv dir diroh || :" HEAD
61+ git filter-branch -f --tree-filter "mv dir diroh || :" HEAD
6262'
6363
6464test_expect_success ' test that the directory was renamed' '
@@ -73,7 +73,7 @@ test_expect_success 'test that the directory was renamed' '
7373git tag oldD HEAD~4
7474test_expect_success ' rewrite one branch, keeping a side branch' '
7575 git branch modD oldD &&
76- git- filter-branch -f --tree-filter "mv b boh || :" D..modD
76+ git filter-branch -f --tree-filter "mv b boh || :" D..modD
7777'
7878
7979test_expect_success ' common ancestor is still common (unchanged)' '
@@ -96,7 +96,7 @@ test_expect_success 'filter subdirectory only' '
9696 test_tick &&
9797 git commit -m "again not subdir" &&
9898 git branch sub &&
99- git- filter-branch -f --subdirectory-filter subdir refs/heads/sub
99+ git filter-branch -f --subdirectory-filter subdir refs/heads/sub
100100'
101101
102102test_expect_success ' subdirectory filter result looks okay' '
@@ -120,7 +120,7 @@ test_expect_success 'more setup' '
120120
121121test_expect_success ' use index-filter to move into a subdirectory' '
122122 git branch directorymoved &&
123- git- filter-branch -f --index-filter \
123+ git filter-branch -f --index-filter \
124124 "git ls-files -s | sed \"s-\\t-&newsubdir/-\" |
125125 GIT_INDEX_FILE=\$GIT_INDEX_FILE.new \
126126 git update-index --index-info &&
@@ -129,7 +129,7 @@ test_expect_success 'use index-filter to move into a subdirectory' '
129129
130130test_expect_success ' stops when msg filter fails' '
131131 old=$(git rev-parse HEAD) &&
132- test_must_fail git- filter-branch -f --msg-filter false HEAD &&
132+ test_must_fail git filter-branch -f --msg-filter false HEAD &&
133133 test $old = $(git rev-parse HEAD) &&
134134 rm -rf .git-rewrite
135135'
@@ -140,7 +140,7 @@ test_expect_success 'author information is preserved' '
140140 test_tick &&
141141 GIT_AUTHOR_NAME="B V Uips" git commit -m bvuips &&
142142 git branch preserved-author &&
143- git- filter-branch -f --msg-filter "cat; \
143+ git filter-branch -f --msg-filter "cat; \
144144 test \$GIT_COMMIT != $(git rev-parse master) || \
145145 echo Hallo" \
146146 preserved-author &&
@@ -152,7 +152,7 @@ test_expect_success "remove a certain author's commits" '
152152 test_tick &&
153153 git commit -m i i &&
154154 git branch removed-author &&
155- git- filter-branch -f --commit-filter "\
155+ git filter-branch -f --commit-filter "\
156156 if [ \"\$GIT_AUTHOR_NAME\" = \"B V Uips\" ];\
157157 then\
158158 skip_commit \"\$@\";
0 commit comments