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

Function sanitize_refname_component

refs.c:378–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378void sanitize_refname_component(const char *refname, struct strbuf *out)
379{
380 if (check_or_sanitize_refname(refname, REFNAME_ALLOW_ONELEVEL, out))
381 BUG("sanitizing refname '%s' check returned error", refname);
382}
383
384int refname_is_safe(const char *refname)
385{

Callers 1

add_worktreeFunction · 0.85

Calls 1

Tested by

no test coverage detected