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

Function git_config_get_notes_strategy

builtin/notes.c:873–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

871}
872
873static int git_config_get_notes_strategy(const char *key,
874 enum notes_merge_strategy *strategy)
875{
876 char *value;
877
878 if (repo_config_get_string(the_repository, key, &value))
879 return 1;
880 if (parse_notes_merge_strategy(value, strategy))
881 git_die_config(the_repository, key, _("unknown notes merge strategy %s"), value);
882
883 free(value);
884 return 0;
885}
886
887static int merge(int argc, const char **argv, const char *prefix,
888 struct repository *repo UNUSED)

Callers 1

mergeFunction · 0.85

Calls 3

repo_config_get_stringFunction · 0.85
git_die_configFunction · 0.85

Tested by

no test coverage detected