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

Function print_update

refs/debug.c:72–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72static 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
91static void print_transaction(struct ref_transaction *transaction)
92{

Callers 1

print_transactionFunction · 0.85

Calls 1

oid_to_hex_rFunction · 0.85

Tested by

no test coverage detected