Skip to content

Commit

Permalink
blame: avoid "diff -u0".
Browse files Browse the repository at this point in the history
As Linus suggests, use "diff -u -U 0" instead.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Mar 6, 2006
1 parent 8752d11 commit 604c86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blame.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static struct patch *get_patch(struct commit *commit, struct commit *other)
die("write failed: %s", strerror(errno));
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");
if (!fin)
die("popen failed: %s", strerror(errno));
Expand Down

0 comments on commit 604c86d

Please sign in to comment.