diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2024-12-16 17:44:29 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-12-16 09:45:33 -0800 |
commit | add2c4f6e225083747e86c2e2e89e80c97b28733 (patch) | |
tree | ec131901ace098eb90a904332508ba2bf9922f59 /commit.h | |
parent | 611986f3007d591731f56ad04cf3e00f0d2f163f (diff) |
refs: extract out refname verification in transactions
Unless the `REF_SKIP_REFNAME_VERIFICATION` flag is set for an update,
the refname of the update is verified for:
- Ensuring it is not a pseudoref.
- Checking the refname format.
These checks will also be needed in a following commit where the
function to add reflog updates to the transaction is introduced. Extract
the code out into a new static function.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions