Skip to content
This repository has been archived by the owner on Dec 6, 2020. It is now read-only.

l0b0/diff-ignore-moved-lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

make test # Optional; requires shunit2
sudo make install

Usage

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

About

Strip moved lines from a diff

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published