| 619 | } |
| 620 | |
| 621 | static void parse_cmd_prepare(struct ref_transaction *transaction, |
| 622 | const char *next, const char *end UNUSED, |
| 623 | struct command_options *opts UNUSED) |
| 624 | { |
| 625 | struct strbuf error = STRBUF_INIT; |
| 626 | if (*next != line_termination) |
| 627 | die("prepare: extra input: %s", next); |
| 628 | if (ref_transaction_prepare(transaction, &error)) |
| 629 | die("prepare: %s", error.buf); |
| 630 | report_ok("prepare"); |
| 631 | } |
| 632 | |
| 633 | static void parse_cmd_abort(struct ref_transaction *transaction, |
| 634 | const char *next, const char *end UNUSED, |
nothing calls this directly
no test coverage detected