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

Function gen_message_id

builtin/log.c:1213–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211}
1212
1213static void gen_message_id(struct rev_info *info, const char *base)
1214{
1215 struct strbuf buf = STRBUF_INIT;
1216 strbuf_addf(&buf, "%s.%"PRItime".git.%s", base,
1217 (timestamp_t) time(NULL),
1218 git_committer_info(IDENT_NO_NAME|IDENT_NO_DATE|IDENT_STRICT));
1219 info->message_id = strbuf_detach(&buf, NULL);
1220}
1221
1222static void print_signature(const char *signature, FILE *file)
1223{

Callers 1

cmd_format_patchFunction · 0.85

Calls 3

strbuf_addfFunction · 0.85
git_committer_infoFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected