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

Function message_is_empty

sequencer.c:1227–1233  ·  view source on GitHub ↗

* Find out if the message in the strbuf contains only whitespace and * Signed-off-by lines. */

Source from the content-addressed store, hash-verified

1225 * Signed-off-by lines.
1226 */
1227int 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

Callers 2

try_to_commitFunction · 0.85
cmd_commitFunction · 0.85

Calls 1

rest_is_emptyFunction · 0.85

Tested by

no test coverage detected