summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 63bf873)
raw | patch | inline | side by side (parent: 63bf873)
author | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 23 Jan 2009 11:23:29 +0000 (12:23 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 23 Jan 2009 11:23:29 +0000 (12:23 +0100) |
tig.c | patch | blob | history |
index e6e44d3c1938c1a92f29c1ec9cd8b74b3afd13ac..88338d0f2832b59f6390d56a8f100efe0bac948a 100644 (file)
--- a/tig.c
+++ b/tig.c
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";
}