| 131 | }; |
| 132 | |
| 133 | static int cmd_delete_refs(struct ref_store *refs, const char **argv) |
| 134 | { |
| 135 | unsigned int flags = arg_flags(*argv++, "flags", transaction_flags); |
| 136 | const char *msg = *argv++; |
| 137 | struct string_list refnames = STRING_LIST_INIT_NODUP; |
| 138 | int result; |
| 139 | |
| 140 | while (*argv) |
| 141 | string_list_append(&refnames, *argv++); |
| 142 | |
| 143 | result = refs_delete_refs(refs, msg, &refnames, flags); |
| 144 | string_list_clear(&refnames, 0); |
| 145 | return result; |
| 146 | } |
| 147 | |
| 148 | static int cmd_rename_ref(struct ref_store *refs, const char **argv) |
| 149 | { |
nothing calls this directly
no test coverage detected