MCPcopy Index your code
hub / github.com/git/git / reflog_message

Function reflog_message

sequencer.c:2242–2261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2240}
2241
2242__attribute__((format (printf, 3, 4)))
2243static const char *reflog_message(struct replay_opts *opts,
2244 const char *sub_action, const char *fmt, ...)
2245{
2246 va_list ap;
2247 static struct strbuf buf = STRBUF_INIT;
2248
2249 va_start(ap, fmt);
2250 strbuf_reset(&buf);
2251 strbuf_addstr(&buf, sequencer_reflog_action(opts));
2252 if (sub_action)
2253 strbuf_addf(&buf, " (%s)", sub_action);
2254 if (fmt) {
2255 strbuf_addstr(&buf, ": ");
2256 strbuf_vaddf(&buf, fmt, ap);
2257 }
2258 va_end(ap);
2259
2260 return buf.buf;
2261}
2262
2263static int do_pick_commit(struct repository *r,
2264 struct todo_item *item,

Callers 6

do_pick_commitFunction · 0.85
do_resetFunction · 0.85
do_mergeFunction · 0.85
checkout_ontoFunction · 0.85
pick_commitsFunction · 0.85
commit_staged_changesFunction · 0.85

Calls 4

strbuf_addstrFunction · 0.85
sequencer_reflog_actionFunction · 0.85
strbuf_addfFunction · 0.85
strbuf_vaddfFunction · 0.85

Tested by

no test coverage detected