Alexander Litvinov <lan@xxxxxxxxxxxxx> writes: > Why does not git-checkout check if file content match name of the object ? Good point. We could do a few things: - entry.c:write_entry() could validate after read_sha1_file(). - read_sha1_file() could do the checking; this has performance implications, though. Cloning over git aware protocols validate the objects coming over the wire, so it may make sense to cheat and do the former, so that we do not have to pay the validation cost every time we access any object. - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html