Strip moved lines from a diff
Shell Makefile
Switch branches/tags
Nothing to show
Latest commit 96a2ed9 Jul 18, 2016 @l0b0 committed on GitHub Merge pull request #6 from forresthopkinsa/patch-1
Thank you!


Ignore moved diff lines

Diffs often show a lot of lines which have simply been moved around, for example after running sort on a configuration file. For each line in the diff, this script will check whether that line has been added and removed the same amount of times. If so, it's simply removed from output.


make test # Optional; requires shunit2
sudo make install


diff ... | diff-ignore-moved-lines
diff-ignore-moved-lines < file.patch