blame: avoid "diff -u0".
As Linus suggests, use "diff -u -U 0" instead. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
8752d11d60
commit
604c86d15b
2
blame.c
2
blame.c
@ -92,7 +92,7 @@ static struct patch *get_patch(struct commit *commit, struct commit *other)
|
|||||||
die("write failed: %s", strerror(errno));
|
die("write failed: %s", strerror(errno));
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
sprintf(diff_cmd, "diff -u0 %s %s", tmp_path1, tmp_path2);
|
sprintf(diff_cmd, "diff -u -U 0 %s %s", tmp_path1, tmp_path2);
|
||||||
fin = popen(diff_cmd, "r");
|
fin = popen(diff_cmd, "r");
|
||||||
if (!fin)
|
if (!fin)
|
||||||
die("popen failed: %s", strerror(errno));
|
die("popen failed: %s", strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user