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

Function report_invalid_attr

attr.c:218–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218static void report_invalid_attr(const char *name, size_t len,
219 const char *src, int lineno)
220{
221 struct strbuf err = STRBUF_INIT;
222 strbuf_addf(&err, _("%.*s is not a valid attribute name"),
223 (int) len, name);
224 fprintf(stderr, "%s: %s:%d\n", err.buf, src, lineno);
225 strbuf_release(&err);
226}
227
228/*
229 * Given a 'name', lookup and return the corresponding attribute in the global

Callers 2

parse_attrFunction · 0.85
parse_attr_lineFunction · 0.85

Calls 2

strbuf_addfFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected