Re: [PATCH/RFC v1 5/6] combine-diff.c: remove a call to fstat() inside show_patch_diff()
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 28, 2009, 20:37 UTC
- Message-ID
- <7v63jznp58.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <1233004637-15112-6-git-send-email-barvik@broadpark.no>
Kjetil Barvik <barvik@broadpark.no> writes:
> Currently inside show_patch_diff() we have and fstat() call after an > ok lstat() call. Since we before the call to fstat() have already > test for the link case with S_ISLNK() the fstat() can be removed.
Good eyes. Thanks.