* Find out if the message in the strbuf contains only whitespace and * Signed-off-by lines. */
| 1225 | * Signed-off-by lines. |
| 1226 | */ |
| 1227 | int message_is_empty(const struct strbuf *sb, |
| 1228 | enum commit_msg_cleanup_mode cleanup_mode) |
| 1229 | { |
| 1230 | if (cleanup_mode == COMMIT_MSG_CLEANUP_NONE && sb->len) |
| 1231 | return 0; |
| 1232 | return rest_is_empty(sb, 0); |
| 1233 | } |
| 1234 | |
| 1235 | /* |
| 1236 | * See if the user edited the message in the editor or left what |
no test coverage detected