| 3521 | } |
| 3522 | |
| 3523 | int 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 | |
| 3532 | const char *ref_transaction_error_msg(enum ref_transaction_error err) |
| 3533 | { |
no test coverage detected