From 73fb51d547de503a6c58f20507ee9017bf29ce97 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 3 Sep 2006 14:50:23 +0200 Subject: [PATCH] Pass --root to git-show so the diff command will show the initial commit --- tig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tig.c b/tig.c index b2e1a36..5eded68 100644 --- a/tig.c +++ b/tig.c @@ -74,7 +74,7 @@ static size_t utf8_length(const char *string, size_t max_width, int *coloffset, "git ls-remote . 2>/dev/null" #define TIG_DIFF_CMD \ - "git show --patch-with-stat --find-copies-harder -B -C %s 2>/dev/null" + "git show --root --patch-with-stat --find-copies-harder -B -C %s 2>/dev/null" #define TIG_LOG_CMD \ "git log --cc --stat -n100 %s 2>/dev/null" @@ -679,7 +679,7 @@ static struct keybinding default_keybindings[] = { { 'v', REQ_SHOW_VERSION }, { 'r', REQ_SCREEN_REDRAW }, { 'n', REQ_TOGGLE_LINENO }, - { 'g', REQ_TOGGLE_REV_GRAPH}, + { 'g', REQ_TOGGLE_REV_GRAPH }, { ':', REQ_PROMPT }, /* wgetch() with nodelay() enabled returns ERR when there's no input. */ -- 2.30.2