| 631 | } |
| 632 | |
| 633 | static void parse_cmd_abort(struct ref_transaction *transaction, |
| 634 | const char *next, const char *end UNUSED, |
| 635 | struct command_options *opts UNUSED) |
| 636 | { |
| 637 | struct strbuf error = STRBUF_INIT; |
| 638 | if (*next != line_termination) |
| 639 | die("abort: extra input: %s", next); |
| 640 | if (ref_transaction_abort(transaction, &error)) |
| 641 | die("abort: %s", error.buf); |
| 642 | report_ok("abort"); |
| 643 | } |
| 644 | |
| 645 | static void parse_cmd_commit(struct ref_transaction *transaction, |
| 646 | const char *next, const char *end UNUSED, |
nothing calls this directly
no test coverage detected