Commit 6626dff6 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

New checker: git_diff_numstat

parent 39a46687
#!/bin/bash
# We want to keep the nodes on their original line when applying a fixer, i.e.
# - Do not add / delete lines
# - Do not move the nodes from one line to another
#
# After applying a fixer, this script is used to manually check the difference
# between the number of lines added and deleted. If this value is other than 0,
# it means that the fixer does not handle certain cases well, i.e. the
# implementation of its `transform` method is not good enough.
cd $1
git diff --numstat | while read insertions deletions file; do
if [ $insertions -ne $deletions ]; then
echo $file $insertions+ $deletions-
fi
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment