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

Function parse_cmd_prepare

builtin/update-ref.c:621–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621static 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
633static void parse_cmd_abort(struct ref_transaction *transaction,
634 const char *next, const char *end UNUSED,

Callers

nothing calls this directly

Calls 3

ref_transaction_prepareFunction · 0.85
report_okFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected