blame: avoid "diff -u0".
As Linus suggests, use "diff -u -U 0" instead. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Mar 5, 2006 at 14:43 UTC
604c86d15bb319a1e93ba218fca48ce1c500ae52
1 file changed
+1
-1
blame.c
+1
-1
@@ -92,7 +92,7 @@ static struct patch *get_patch(struct commit *commit, struct commit *other)
92
die("write failed: %s", strerror(errno));
93
close(fd);
94
95
- sprintf(diff_cmd, "diff -u0 %s %s", tmp_path1, tmp_path2);
95
+ sprintf(diff_cmd, "diff -u -U 0 %s %s", tmp_path1, tmp_path2);
96
fin = popen(diff_cmd, "r");
97
if (!fin)
98
die("popen failed: %s", strerror(errno));