Re: [PATCH 1/2] diff/status: refactor opportunistic index update
- From
Piotr Krukowiecki <piotr.krukowiecki@gmail.com>
- Date
- Mar 21, 2011, 18:46 UTC
- Message-ID
- <AANLkTinUqzgpiX_X+kpUuOSxNqRVp+OC1HOreEkF6yhX@mail.gmail.com>
- In-Reply-To
- <7vtyewqtmk.fsf@alter.siamese.dyndns.org>
On Mon, Mar 21, 2011 at 6:16 PM, Junio C Hamano <gitster@pobox.com> wrote:
> +void update_index_if_able(struct index_state *istate, struct lock_file *lockfile)
> +{
> + if (istate->cache_changed) &&
> + !write_index(istate, lockfile->fd))Mismatched parenthesis? Should be sth like
+ if (istate->cache_changed && + !write_index(istate, lockfile->fd))
-- Piotr Krukowiecki