I want git diff to output normal, plain old diff output (not unified diff, and not context diff).
I want this:
$ diff file1 file2
2c2
< b
---
> B
4d3
< d
5a5
> f
I do NOT want unified output:
$ diff -u file1 file2
--- file1 2012-07-04 07:57:48.000000000 -0700
+++ file2 2012-07-04 07:58:00.000000000 -0700
@@ -1,5 +1,5 @@
a
-b
+B
c
-d
e
+f
I do NOT want context output:
$ diff -c file1 file2
*** file1 2012-07-04 07:57:48.000000000 -0700
--- file2 2012-07-04 07:58:00.000000000 -0700
***************
*** 1,5 ****
a
! b
c
- d
e
--- 1,5 ----
a
! B
c
e
+ f
I tried the various git difftool --tool= args with no luck, and I didn’t find anything relevant in git diff --help
or, without prompting:
This is
git difftoolrather thangit diffbut it is doing what I want.