Re: [PATCH v3 2/2] diff: don't read index when --no-index is given
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 10, 2013, 18:18 UTC
- Message-ID
- <20131210181840.GC2311@google.com>
- In-Reply-To
- <1386697935-18635-2-git-send-email-t.gummerer@gmail.com>
Thomas Gummerer wrote:
Show 9 quoted lines
> --- 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?