| 2937 | } |
| 2938 | |
| 2939 | enum 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 | |
| 2957 | struct do_for_each_reflog_help { |
| 2958 | each_reflog_fn *fn; |