How can I diff two files with full context?

You can also override the diff formatting behavior to get your desired behavior without using side-by-side mode:

diff --new-line-format="+%L" --old-line-format="-%L" --unchanged-line-format=" %L" file1 file2

This command will show you the full file as context and be closest in format to diff -u file1 file2

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)