Closed podhmo closed 3 years ago
$ port contents git | grep "diff-highlight$"
/opt/local/bin/diff-highlight
/opt/local/share/git/contrib/diff-highlight/diff-highlight
$ cat dst/00.diff | /opt/local/bin/diff-highlight
--- src/000person.json
+++ src/001person.json
@@ -1,5 +1,5 @@
{
- "name": "foo",
- "age": 20,
+ "name": "bar",
+ "age": 21,
"type": "person"
}
use diff-highlight
or fancy output
https://eshlox.net/2020/04/07/better-diffs-in-pytest