How can we get an output similar to what we expect from diff --side-by-side --suppress-common-lines --context=3
?
One can use diff --side-by-side --suppress-common-lines file1 file2
to have side-by-side reduced view for a patch.
Or use diff --context=3 file1 file2
or diff --unified=3 file1 file2
to have a the context displayed around the changes.
But upon combining --side-by-side
and --context
or --unified
we get the error:
diff: conflicting output style options
vimdiff
a try. You'll like it.gvimdiff
. The GUI version ofvimdiff
.