From: Jonas Fonseca Date: Fri, 23 Jan 2009 11:23:29 +0000 (+0100) Subject: Oops, always specify --no-color when using git diff X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=78685441f4effd81082a53abb4c1246ebd1e0e49;p=tig.git Oops, always specify --no-color when using git diff --- diff --git a/tig.c b/tig.c index e6e44d3..88338d0 100644 --- a/tig.c +++ b/tig.c @@ -4165,12 +4165,13 @@ blame_request(struct view *view, enum request request, struct line *line) if (!strcmp(blame->commit->id, NULL_ID)) { struct view *diff = VIEW(REQ_VIEW_DIFF); const char *diff_index_argv[] = { - "git", "diff-index", "--patch-with-stat", "-C", - "-M", "HEAD", "--", view->vid, NULL + "git", "diff-index", "--root", "--patch-with-stat", + "-C", "-M", "HEAD", "--", view->vid, NULL }; if (!blame->commit->has_previous) { diff_index_argv[1] = "diff"; + diff_index_argv[2] = "--no-color"; diff_index_argv[5] = "--"; diff_index_argv[6] = "/dev/null"; }