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

Function is_pseudo_ref

refs.c:888–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888int is_pseudo_ref(const char *refname)
889{
890 static const char * const pseudo_refs[] = {
891 "FETCH_HEAD",
892 "MERGE_HEAD",
893 };
894 size_t i;
895
896 for (i = 0; i < ARRAY_SIZE(pseudo_refs); i++)
897 if (!strcmp(refname, pseudo_refs[i]))
898 return 1;
899
900 return 0;
901}
902
903static int is_root_ref_syntax(const char *refname)
904{

Callers 4

ref_kind_from_refnameFunction · 0.85
is_root_refFunction · 0.85
refs_read_raw_refFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected