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

Function copy_branchname

refs.c:747–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747void copy_branchname(struct strbuf *sb, const char *name,
748 enum interpret_branch_kind allowed)
749{
750 int len = strlen(name);
751 struct interpret_branch_name_options options = {
752 .allowed = allowed
753 };
754 int used = repo_interpret_branch_name(the_repository, name, len, sb,
755 &options);
756
757 if (used < 0)
758 used = 0;
759 strbuf_add(sb, name + used, len - used);
760}
761
762int check_branch_ref(struct strbuf *sb, const char *name)
763{

Callers 5

check_branch_refFunction · 0.85
merge_nameFunction · 0.85
setup_branch_pathFunction · 0.85
delete_branchesFunction · 0.85
cmd_branchFunction · 0.85

Calls 2

strbuf_addFunction · 0.85

Tested by

no test coverage detected