From 277d9138f5234c76e1325d988b8fb7e19b4921f9 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 10 Apr 2012 13:01:48 -0400 Subject: [PATCH] Fix diff command for staged files before initial commit --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tig.c b/tig.c index 970a75d..df066ee 100644 --- a/tig.c +++ b/tig.c @@ -6417,7 +6417,7 @@ stage_open(struct view *view, enum open_flags flags) static const char *no_head_diff_argv[] = { "git", "diff", ENCODING_ARG, "--no-color", "--patch-with-stat", opt_diff_context_arg, opt_ignore_space_arg, - "--", "/dev/null", stage_status.new.name, NULL + "--cached", "--", stage_status.new.name, NULL }; static const char *index_show_argv[] = { "git", "diff-index", ENCODING_ARG, "--root", "--patch-with-stat", "-C", "-M", -- 2.11.4.GIT