commit | 604c86d15bb319a1e93ba218fca48ce1c500ae52 | [log] [tgz] |
---|---|---|
author | Junio C Hamano <junkio@cox.net> | Sun Mar 05 14:43:56 2006 -0800 |
committer | Junio C Hamano <junkio@cox.net> | Sun Mar 05 16:02:44 2006 -0800 |
tree | 3f73a07027a46cc8836897560ba3134bbb85a6c5 | |
parent | 8752d11d60e8f48b6e242e7f504c8e8fd7eabb92 [diff] |
blame: avoid "diff -u0". As Linus suggests, use "diff -u -U 0" instead. Signed-off-by: Junio C Hamano <junkio@cox.net>
diff --git a/blame.c b/blame.c index ffc1f52..fca22f9 100644 --- a/blame.c +++ b/blame.c
@@ -92,7 +92,7 @@ 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));