Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1072
int is_branch(const char *refname)
1073
{
1074
return !strcmp(refname,
"HEAD"
) || starts_with(refname,
"refs/heads/"
);
1075
}
1076
1077
struct read_ref_at_cb {
1078
timestamp_t at_time;
Callers
2
ref_transaction_update
Function · 0.85
snapshot_ref
Function · 0.85
Calls
1
starts_with
Function · 0.85
Tested by
no test coverage detected