Skip to content

Commit

Permalink
Add a difftool that ignores frequently changing lines
Browse files Browse the repository at this point in the history
Usage:

    git difftool --dir-diff --extcmd=tools/diff-interesting.sh
  • Loading branch information
cben committed Jul 8, 2018
1 parent 904a389 commit b1e9464
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tools/diff-interesting.sh
@@ -0,0 +1,16 @@
#!/bin/bash
# Usage:
#
# git difftool --dir-diff --extcmd=tools/diff-interesting.sh
#
diff --recursive --unified=1 --color \
--ignore-matching-lines=serverAddress \
--ignore-matching-lines='^\* subject:' \
--ignore-matching-lines='^\* start date:' \
--ignore-matching-lines='^\* expire date:' \
--ignore-matching-lines='^\* issuer:' \
--ignore-matching-lines='^< Date:' \
--ignore-matching-lines='^< Content-Length:' \
--ignore-matching-lines='--:--:--' \
--ignore-matching-lines='{ \[[0-9]* bytes data\]' \
"$@"

0 comments on commit b1e9464

Please sign in to comment.