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

Function is_branch

refs.c:1072–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1070}
1071
1072int is_branch(const char *refname)
1073{
1074 return !strcmp(refname, "HEAD") || starts_with(refname, "refs/heads/");
1075}
1076
1077struct read_ref_at_cb {
1078 timestamp_t at_time;

Callers 2

ref_transaction_updateFunction · 0.85
snapshot_refFunction · 0.85

Calls 1

starts_withFunction · 0.85

Tested by

no test coverage detected