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

Function get_notes_args

builtin/log.c:1336–1347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1334}
1335
1336static void get_notes_args(struct strvec *arg, struct rev_info *rev)
1337{
1338 if (!rev->show_notes) {
1339 strvec_push(arg, "--no-notes");
1340 } else if (rev->notes_opt.use_default_notes > 0 ||
1341 (rev->notes_opt.use_default_notes == -1 &&
1342 !rev->notes_opt.extra_notes_refs.nr)) {
1343 strvec_push(arg, "--notes");
1344 } else {
1345 for_each_string_list(&rev->notes_opt.extra_notes_refs, get_notes_refs, arg);
1346 }
1347}
1348
1349static void generate_shortlog_cover_letter(struct shortlog *log,
1350 struct rev_info *rev,

Callers 1

cmd_format_patchFunction · 0.85

Calls 2

strvec_pushFunction · 0.85
for_each_string_listFunction · 0.85

Tested by

no test coverage detected