Re: [PATCH 1/2] git apply: option to ignore whitespace differences
Giuseppe Bilotta <giuseppe.bilotta@gmail.com> writes:
Show 15 quoted lines
> On Thu, Jul 2, 2009 at 6:46 PM, Junio C Hamano<gitster@pobox.com> wrote:
>>> diff --git a/builtin-apply.c b/builtin-apply.c
>>> index dc0ff5e..86860d6 100644
>>> --- a/builtin-apply.c
>>> +++ b/builtin-apply.c
>>> @@ -39,6 +39,7 @@ static int diffstat;
>>> static int numstat;
>>> static int summary;
>>> static int check;
>>> +static int ignore_whitespace = 0;
>>
>> s/ = 0//;
>
> Ah, I wondered about that. I assume this leaves no possibility for
> uninitialized values because of the way option parsing is done?
It is not "uninitialized" to begin with.
C initializes static variables without explicit initial values to 0.