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

Function is_root_ref_syntax

refs.c:903–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

901}
902
903static int is_root_ref_syntax(const char *refname)
904{
905 const char *c;
906
907 for (c = refname; *c; c++) {
908 if (!isupper(*c) && *c != '-' && *c != '_')
909 return 0;
910 }
911
912 return 1;
913}
914
915int is_root_ref(const char *refname)
916{

Callers 2

is_root_refFunction · 0.85
is_current_worktree_refFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected