MCPcopy Create free account
hub / github.com/git/git / ref_update_expects_existing_old_ref

Function ref_update_expects_existing_old_ref

refs.c:3523–3530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3521}
3522
3523int ref_update_expects_existing_old_ref(struct ref_update *update)
3524{
3525 if (update->flags & REF_LOG_ONLY)
3526 return 0;
3527
3528 return (update->flags & REF_HAVE_OLD) &&
3529 (!is_null_oid(&update->old_oid) || update->old_target);
3530}
3531
3532const char *ref_transaction_error_msg(enum ref_transaction_error err)
3533{

Callers 2

prepare_single_updateFunction · 0.85
lock_ref_for_updateFunction · 0.85

Calls 1

is_null_oidFunction · 0.85

Tested by

no test coverage detected