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

Function read_commit_message

builtin/commit.c:1230–1240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1228}
1229
1230static const char *read_commit_message(const char *name)
1231{
1232 const char *out_enc;
1233 struct commit *commit;
1234
1235 commit = lookup_commit_reference_by_name(name);
1236 if (!commit)
1237 die(_("could not lookup commit '%s'"), name);
1238 out_enc = get_commit_output_encoding();
1239 return repo_logmsg_reencode(the_repository, commit, NULL, out_enc);
1240}
1241
1242/*
1243 * Enumerate what needs to be propagated when --porcelain

Callers 1

Calls 4

repo_logmsg_reencodeFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected