| 809 | } |
| 810 | |
| 811 | int odb_has_object(struct object_database *odb, const struct object_id *oid, |
| 812 | enum odb_has_object_flags flags) |
| 813 | { |
| 814 | unsigned object_info_flags = 0; |
| 815 | |
| 816 | if (!startup_info->have_repository) |
| 817 | return 0; |
| 818 | if (!(flags & ODB_HAS_OBJECT_RECHECK_PACKED)) |
| 819 | object_info_flags |= OBJECT_INFO_QUICK; |
| 820 | if (!(flags & ODB_HAS_OBJECT_FETCH_PROMISOR)) |
| 821 | object_info_flags |= OBJECT_INFO_SKIP_FETCH_OBJECT; |
| 822 | |
| 823 | return odb_read_object_info_extended(odb, oid, NULL, object_info_flags) >= 0; |
| 824 | } |
| 825 | |
| 826 | int odb_freshen_object(struct object_database *odb, |
| 827 | const struct object_id *oid) |
no test coverage detected