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

Function ref_transaction_rejection_handler

builtin/receive-pack.c:1882–1897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1880}
1881
1882static void ref_transaction_rejection_handler(const char *refname,
1883 const struct object_id *old_oid UNUSED,
1884 const struct object_id *new_oid UNUSED,
1885 const char *old_target UNUSED,
1886 const char *new_target UNUSED,
1887 enum ref_transaction_error err,
1888 const char *details,
1889 void *cb_data)
1890{
1891 struct strmap *failed_refs = cb_data;
1892
1893 if (details)
1894 rp_error("%s", details);
1895
1896 strmap_put(failed_refs, refname, (char *)ref_transaction_error_msg(err));
1897}
1898
1899static void execute_commands_non_atomic(struct command *commands,
1900 struct shallow_info *si)

Callers

nothing calls this directly

Calls 3

rp_errorFunction · 0.85
strmap_putFunction · 0.85

Tested by

no test coverage detected