| 70 | } |
| 71 | |
| 72 | static void print_update(int i, const char *refname, |
| 73 | const struct object_id *old_oid, |
| 74 | const struct object_id *new_oid, unsigned int flags, |
| 75 | unsigned int type, const char *msg) |
| 76 | { |
| 77 | char o[GIT_MAX_HEXSZ + 1] = "null"; |
| 78 | char n[GIT_MAX_HEXSZ + 1] = "null"; |
| 79 | if (old_oid) |
| 80 | oid_to_hex_r(o, old_oid); |
| 81 | if (new_oid) |
| 82 | oid_to_hex_r(n, new_oid); |
| 83 | |
| 84 | type &= 0xf; /* see refs.h REF_* */ |
| 85 | flags &= REF_HAVE_NEW | REF_HAVE_OLD | REF_NO_DEREF | |
| 86 | REF_FORCE_CREATE_REFLOG; |
| 87 | trace_printf_key(&trace_refs, "%d: %s %s -> %s (F=0x%x, T=0x%x) \"%s\"\n", i, refname, |
| 88 | o, n, flags, type, msg); |
| 89 | } |
| 90 | |
| 91 | static void print_transaction(struct ref_transaction *transaction) |
| 92 | { |
no test coverage detected