| 256 | }; |
| 257 | |
| 258 | static struct update_ref_record *init_update_ref_record(const char *ref) |
| 259 | { |
| 260 | struct update_ref_record *rec; |
| 261 | |
| 262 | CALLOC_ARRAY(rec, 1); |
| 263 | |
| 264 | oidcpy(&rec->before, null_oid(the_hash_algo)); |
| 265 | oidcpy(&rec->after, null_oid(the_hash_algo)); |
| 266 | |
| 267 | /* This may fail, but that's fine, we will keep the null OID. */ |
| 268 | refs_read_ref(get_main_ref_store(the_repository), ref, &rec->before); |
| 269 | |
| 270 | return rec; |
| 271 | } |
| 272 | |
| 273 | static int git_sequencer_config(const char *k, const char *v, |
| 274 | const struct config_context *ctx, void *cb) |
no test coverage detected