| 1228 | } |
| 1229 | |
| 1230 | static 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 |
no test coverage detected