[PATCH] Enhance sha1_file_size() into sha1_object_info()