From: Jonathan Nieder Date: Tue, 10 Dec 2013 18:18:40 GMT Subject: Re: [PATCH v3 2/2] diff: don't read index when --no-index is given Message-ID: <20131210181840.GC2311@google.com> In-Reply-To: <1386697935-18635-2-git-send-email-t.gummerer@gmail.com> Thomas Gummerer wrote: > --- a/builtin/diff.c > +++ b/builtin/diff.c > @@ -295,7 +295,9 @@ int cmd_diff(int argc, const char **argv, const char *prefix) > break; > } > > - prefix = setup_git_directory_gently(&nongit); > + if (!no_index) > + prefix = setup_git_directory_gently(&nongit); What is the value of nongit in the no_index case?