| 1880 | } |
| 1881 | |
| 1882 | static 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 | |
| 1899 | static void execute_commands_non_atomic(struct command *commands, |
| 1900 | struct shallow_info *si) |
nothing calls this directly
no test coverage detected