From: Junio C Hamano Date: Wed, 28 Jan 2009 20:37:07 GMT Subject: Re: [PATCH/RFC v1 5/6] combine-diff.c: remove a call to fstat() inside show_patch_diff() Message-ID: <7v63jznp58.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1233004637-15112-6-git-send-email-barvik@broadpark.no> Kjetil Barvik 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.