return non-zero if the ref is hidden, otherwise 0 */
| 1192 | |
| 1193 | /* return non-zero if the ref is hidden, otherwise 0 */ |
| 1194 | static int mark_our_ref(const char *refname, const char *refname_full, |
| 1195 | const struct object_id *oid, const struct strvec *hidden_refs) |
| 1196 | { |
| 1197 | struct object *o = lookup_unknown_object(the_repository, oid); |
| 1198 | |
| 1199 | if (ref_is_hidden(refname, refname_full, hidden_refs)) { |
| 1200 | o->flags |= HIDDEN_REF; |
| 1201 | return 1; |
| 1202 | } |
| 1203 | o->flags |= OUR_REF; |
| 1204 | return 0; |
| 1205 | } |
| 1206 | |
| 1207 | static int check_ref(const struct reference *ref, void *cb_data) |
| 1208 | { |
no test coverage detected