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

Function notes_display_config

notes.c:987–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

985}
986
987static int notes_display_config(const char *k, const char *v,
988 const struct config_context *ctx UNUSED,
989 void *cb)
990{
991 int *load_refs = cb;
992
993 if (*load_refs && !strcmp(k, "notes.displayref")) {
994 if (!v)
995 return config_error_nonbool(k);
996 string_list_add_refs_by_glob(&display_notes_refs, v);
997 }
998
999 return 0;
1000}
1001
1002char *default_notes_ref(struct repository *repo)
1003{

Callers

nothing calls this directly

Calls 2

config_error_nonboolFunction · 0.85

Tested by

no test coverage detected