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

Function get_message

sequencer.c:485–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485static int get_message(struct commit *commit, struct commit_message *out)
486{
487 const char *abbrev, *subject;
488 int subject_len;
489
490 out->message = repo_logmsg_reencode(the_repository, commit, NULL,
491 get_commit_output_encoding());
492 abbrev = short_commit_name(the_repository, commit);
493
494 subject_len = find_commit_subject(out->message, &subject);
495
496 out->subject = xmemdupz(subject, subject_len);
497 out->label = xstrfmt("%s (%s)", abbrev, out->subject);
498 out->parent_label = xstrfmt("parent of %s", out->label);
499
500 return 0;
501}
502
503static void free_message(struct commit *commit, struct commit_message *msg)
504{

Callers 2

do_pick_commitFunction · 0.85
stopped_at_headFunction · 0.85

Calls 6

repo_logmsg_reencodeFunction · 0.85
find_commit_subjectFunction · 0.85
xmemdupzFunction · 0.85
xstrfmtFunction · 0.85
short_commit_nameFunction · 0.70

Tested by

no test coverage detected