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

Function run_transaction_hook

refs.c:2649–2665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2647}
2648
2649static int run_transaction_hook(struct ref_transaction *transaction,
2650 const char *state)
2651{
2652 struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT;
2653 int ret = 0;
2654
2655 strvec_push(&opt.args, state);
2656
2657 opt.feed_pipe = transaction_hook_feed_stdin;
2658 opt.feed_pipe_ctx = transaction;
2659 opt.feed_pipe_cb_data_alloc = transaction_feed_cb_data_alloc;
2660 opt.feed_pipe_cb_data_free = transaction_feed_cb_data_free;
2661
2662 ret = run_hooks_opt(transaction->ref_store->repo, "reference-transaction", &opt);
2663
2664 return ret;
2665}
2666
2667int ref_transaction_prepare(struct ref_transaction *transaction,
2668 struct strbuf *err)

Callers 3

ref_transaction_prepareFunction · 0.85
ref_transaction_abortFunction · 0.85
ref_transaction_commitFunction · 0.85

Calls 2

strvec_pushFunction · 0.85
run_hooks_optClass · 0.70

Tested by

no test coverage detected