@matheusbsbs / matheus-bagliano / commits / afd222967c
Fork 0

Extend testing git-mv for renaming of subdirectories

Signed-off-by: Josef Weidendorfer <Josef.Weidendorfer@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>

Josef Weidendorfer committed Jul 26, 2006 at 15:44 UTC afd222967c6abedcf75e28fe0e57cd5644f6c865
1 file changed +21
t/t7001-mv.sh
+21
@@ -38,4 +38,25 @@ test_expect_success \
38 'git-diff-tree -r -M --name-status HEAD^ HEAD | \
39 grep -E "^R100.+path1/COPYING.+path0/COPYING"'
40
41 +test_expect_success \
42 + 'adding another file' \
43 + 'cp ../../README path0/README &&
44 + git-add path0/README &&
45 + git-commit -m add2 -a'
46 +
47 +test_expect_success \
48 + 'moving whole subdirectory' \
49 + 'git-mv path0 path2'
50 +
51 +test_expect_success \
52 + 'commiting the change' \
53 + 'git-commit -m dir-move -a'
54 +
55 +test_expect_success \
56 + 'checking the commit' \
57 + 'git-diff-tree -r -M --name-status HEAD^ HEAD | \
58 + grep -E "^R100.+path0/COPYING.+path2/COPYING" &&
59 + git-diff-tree -r -M --name-status HEAD^ HEAD | \
60 + grep -E "^R100.+path0/README.+path2/README"'
61 +
62 test_done