MCPcopy Index your code
hub / github.com/git/git / update_ref_namespace

Function update_ref_namespace

refs.c:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163};
164
165void update_ref_namespace(enum ref_namespace namespace, char *ref)
166{
167 struct ref_namespace_info *info = &ref_namespace[namespace];
168 if (info->ref_updated)
169 free((char *)info->ref);
170 info->ref = ref;
171 info->ref_updated = 1;
172}
173
174/*
175 * Try to read one refname component from the front of refname.

Callers 2

setup_git_env_internalFunction · 0.85
init_notesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected