Subject: Re: [PATCH v3 2/2] diff: don't read index when --no-index is given

From: Jonathan Nieder <[email-masked]>
Date: Tue, 10 Dec 2013 10:18:40 -0800

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?