Re: [PATCH v4 3/4] count-objects: report garbage files in pack directory too
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Feb 14, 2013, 09:24 UTC
- Message-ID
- <CACsJy8DxRuML1+gSCZaGC1hA4MU9sWnoGJGZMbeUVdaipOH7vA@mail.gmail.com>
- In-Reply-To
- <7vehgkb43v.fsf@alter.siamese.dyndns.org>
On Wed, Feb 13, 2013 at 10:55 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
>> + default: >> + return; >> + } >> + for (; first <= last; first++) > > This looks odd. If you use the usual last+1 convention between the > caller and callee, you do not have to do this, or call this function > with "i - 1" and "list->nr -1" as the last parameter.
I know. I just don't know how to name the variable to say "the element after the last one".
-- Duy