| 886 | } |
| 887 | |
| 888 | int 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 | |
| 903 | static int is_root_ref_syntax(const char *refname) |
| 904 | { |
no outgoing calls
no test coverage detected