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

Function normalize_reflog_message

refs.c:1047–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045}
1046
1047static char *normalize_reflog_message(const char *msg)
1048{
1049 struct strbuf sb = STRBUF_INIT;
1050
1051 if (msg && *msg)
1052 copy_reflog_msg(&sb, msg);
1053 return strbuf_detach(&sb, NULL);
1054}
1055
1056int should_autocreate_reflog(enum log_refs_config log_all_ref_updates,
1057 const char *refname)

Callers 4

refs_delete_refsFunction · 0.85
refs_rename_refFunction · 0.85
refs_copy_existing_refFunction · 0.85

Calls 2

copy_reflog_msgFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected