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

Function comment_key_name

config.c:2056–2067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2054}
2055
2056static const char *comment_key_name(unsigned id)
2057{
2058 static const char *name[] = {
2059 "core.commentChar",
2060 "core.commentString",
2061 };
2062
2063 if (id >= ARRAY_SIZE(name))
2064 BUG("invalid comment key id");
2065
2066 return name[id];
2067}
2068
2069static void comment_char_callback(const char *key, const char *value,
2070 const struct config_context *ctx, void *data)

Calls

no outgoing calls

Tested by

no test coverage detected