summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorLibravatar Johan Herland <johan@herland.net>2011-04-29 11:36:16 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-04-29 11:17:36 -0700
commit5502039d87337e076e69f7de949cb0e0360de16f (patch)
treed909fd157d963412478e7602e6b14ee31c964cf7 /diff.c
parentt/test-lib.sh: minor readability improvements (diff)
downloadtgif-5502039d87337e076e69f7de949cb0e0360de16f.tar.xz
Add several testcases for --dirstat and friends
Currently, t4013 is the only selftest that exercises the --dirstat machinery, but it only does a superficial verification of --dirstat's output. This patch adds a new selftest - t4047-diff-dirstat.sh - which prepares a commit containing: - unchanged files, changed files and files with rearranged lines - copied files, moved files, and unmoved files It then verifies the correct dirstat output for that commit in the following dirstat modes: - --dirstat - -X - --dirstat=0 - -X0 - --cumulative - --dirstat-by-file - (plus combinations of the above) Each of the above tests are also run with: - no rename detection - rename detection (-M) - expensive copy detection (-C -C) Improved-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions