lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] git apply: option to ignore whitespace differences
- Date: Thu, 02 Jul 2009 11:29:07 -0700
- From: Junio C Hamano <gitster@xxxxxxxxx>
- Subject: Re: [PATCH 1/2] git apply: option to ignore whitespace differences
Giuseppe Bilotta <giuseppe.bilotta@xxxxxxxxx> writes:
> On Thu, Jul 2, 2009 at 6:46 PM, Junio C Hamano<gitster@xxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html