How to show space and tabs with git-diff

Note: Git 2.5+ (Q2 2015) will propose a more specific option for whitespace detection. See commits 0e383e1, 0ad782f, and d55ef3e [26 May 2015] by Junio C Hamano (gitster). (Merged by Junio in commit 709cd91, 11 Jun 2015) diff.c: –ws-error-highlight=<kind> option Traditionally, we only cared about whitespace breakages introduced in new lines. Some people want to … Read more

What is the reason for the /a /b prefixes of git diff

As mentioned in the diff man page, a/ and b/ represent the prefix to differentiate source and destination. Actually, you have the options: –no-prefix Do not show any source or destination prefix. –src-prefix=<prefix> Show the given source prefix instead of “a/”. –dst-prefix=<prefix> Show the given destination prefix instead of “b/” Gringo Suave adds in the … Read more