##// END OF EJS Templates
diffstat: with --git, mark binary files with Bin...
diffstat: with --git, mark binary files with Bin Normally, diffs without any text insertions or deletions are reported as having 0 lines changed by stock diffstat. Compatibility is preserved with stock diffstat in this case, but when using --git, binary files are marked with Bin as a means of clarification. git diff --stat does something similar, though it also includes the old and new file sizes.

File last commit:

r9642:7d17794f default
r9642:7d17794f default
Show More
test-diffstat
34 lines | 448 B | text/plain | TextLexer
#!/bin/sh
hg init repo
cd repo
i=0; while (( $i < 213 )); do echo a >> a; i=$(($i + 1)); done
hg add a
echo '% wide diffstat'
hg diff --stat
echo '% diffstat width'
COLUMNS=24 hg diff --config ui.interactive=true --stat
hg ci -m adda
cat >> a <<EOF
a
a
a
EOF
echo '% narrow diffstat'
hg diff --stat
hg ci -m appenda
printf '%b' '\x00' > b
hg add b
echo '% binary diffstat'
hg diff --stat
echo '% binary git diffstat'
hg diff --stat --git