| 182 | } |
| 183 | |
| 184 | static int cmd_resolve_ref(struct ref_store *refs, const char **argv) |
| 185 | { |
| 186 | struct object_id oid = *null_oid(the_hash_algo); |
| 187 | const char *refname = notnull(*argv++, "refname"); |
| 188 | int resolve_flags = arg_flags(*argv++, "resolve-flags", empty_flags); |
| 189 | int flags; |
| 190 | const char *ref; |
| 191 | |
| 192 | ref = refs_resolve_ref_unsafe(refs, refname, resolve_flags, |
| 193 | &oid, &flags); |
| 194 | printf("%s %s 0x%x\n", oid_to_hex(&oid), ref ? ref : "(null)", flags); |
| 195 | return ref ? 0 : 1; |
| 196 | } |
| 197 | |
| 198 | static int cmd_verify_ref(struct ref_store *refs, const char **argv) |
| 199 | { |
nothing calls this directly
no test coverage detected