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

Function refs_verify_refname_available

refs.c:2939–2955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2937}
2938
2939enum ref_transaction_error refs_verify_refname_available(
2940 struct ref_store *refs,
2941 const char *refname,
2942 const struct string_list *extras,
2943 const struct string_list *skip,
2944 unsigned int initial_transaction,
2945 struct strbuf *err)
2946{
2947 struct string_list_item item = { .string = (char *) refname };
2948 struct string_list refnames = {
2949 .items = &item,
2950 .nr = 1,
2951 };
2952
2953 return refs_verify_refnames_available(refs, &refnames, extras, skip,
2954 NULL, initial_transaction, err);
2955}
2956
2957struct do_for_each_reflog_help {
2958 each_reflog_fn *fn;

Callers 5

cmd_verify_refFunction · 0.85
write_copy_tableFunction · 0.85
lock_raw_refFunction · 0.85
lock_ref_oid_basicFunction · 0.85

Calls 1

Tested by 1

cmd_verify_refFunction · 0.68