Say I want to diff two files:
diff --ignore-space-change foo.go bar.go
is there a way to print only the first line change - basically to tell diff to stop working after the first line change is detected - and print that change?
For example, say file1 is:
a
b
c
d
and file2 is:
a
b
y
z
then I am looking for a tool that prints something like:
<file1
c
>file2
y
that's all