Code

Test diff --dirstat functionality
authorThomas Rast <trast@student.ethz.ch>
Thu, 19 Feb 2009 11:13:37 +0000 (12:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Feb 2009 08:02:48 +0000 (00:02 -0800)
This is only a very rudimentary test, but it was untested before.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4013-diff-various.sh
t/t4013/diff.diff_--dirstat_master~1_master~2 [new file with mode: 0644]

index aba53202f84b6c6c16a68f45ccfa42368e47d421..f140b9cd499edb2482b2afad2f988e3a91183b40 100755 (executable)
@@ -263,6 +263,7 @@ diff --name-status dir2 dir
 diff --no-index --name-status dir2 dir
 diff --no-index --name-status -- dir2 dir
 diff master master^ side
+diff --dirstat master~1 master~2
 EOF
 
 test_done
diff --git a/t/t4013/diff.diff_--dirstat_master~1_master~2 b/t/t4013/diff.diff_--dirstat_master~1_master~2
new file mode 100644 (file)
index 0000000..b672e1c
--- /dev/null
@@ -0,0 +1,3 @@
+$ git diff --dirstat master~1 master~2
+  40.0% dir/
+$