From: Linus Torvalds Date: Tue, 17 Jun 2008 00:17:10 +0000 (-0700) Subject: write_loose_object: don't bother trying to read an old object X-Git-Tag: v1.5.6~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1421c5f274a10f93ce5e8b51c0e1351905f84f4e?hp=1421c5f274a10f93ce5e8b51c0e1351905f84f4e write_loose_object: don't bother trying to read an old object Before even calling this, all callers have done a "has_sha1_file(sha1)" or "has_loose_object(sha1)" check, so there is no point in doing a second check. If something races with us on object creation, we handle that in the final link() that moves it to the right place. Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano ---