Created
April 7, 2020 14:21
-
-
Save benoittgt/5a6193ce3afba4015f9eb70adffe129d to your computer and use it in GitHub Desktop.
Show only add + deletion with specific content with Git and Grep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff -U0 HEAD\~1..HEAD | \ | |
grep -v '^@@ ' | \ | |
grep -v '^-[[:blank:]]*$' | \ | |
grep -B1 -E '^(-[^-]|\+[^+])[^ Generated]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment