From: Jonas Fonseca Date: Sun, 3 Sep 2006 12:50:23 +0000 (+0200) Subject: Pass --root to git-show so the diff command will show the initial commit X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=73fb51d547de503a6c58f20507ee9017bf29ce97;p=tig.git Pass --root to git-show so the diff command will show the initial commit --- 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. */