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

Function parse_cover_from_description

builtin/log.c:942–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940}
941
942static enum cover_from_description parse_cover_from_description(const char *arg)
943{
944 if (!arg || !strcmp(arg, "default"))
945 return COVER_FROM_MESSAGE;
946 else if (!strcmp(arg, "none"))
947 return COVER_FROM_NONE;
948 else if (!strcmp(arg, "message"))
949 return COVER_FROM_MESSAGE;
950 else if (!strcmp(arg, "subject"))
951 return COVER_FROM_SUBJECT;
952 else if (!strcmp(arg, "auto"))
953 return COVER_FROM_AUTO;
954 else
955 die(_("%s: invalid cover from description mode"), arg);
956}
957
958static void add_header(struct format_config *cfg, const char *value)
959{

Callers 2

git_format_configFunction · 0.85
cmd_format_patchFunction · 0.85

Calls 1

dieFunction · 0.50

Tested by

no test coverage detected