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

Function branch_interpret_allowed

object-name.c:1412–1426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1410}
1411
1412static int branch_interpret_allowed(const char *refname,
1413 enum interpret_branch_kind allowed)
1414{
1415 if (!allowed)
1416 return 1;
1417
1418 if ((allowed & INTERPRET_BRANCH_LOCAL) &&
1419 starts_with(refname, "refs/heads/"))
1420 return 1;
1421 if ((allowed & INTERPRET_BRANCH_REMOTE) &&
1422 starts_with(refname, "refs/remotes/"))
1423 return 1;
1424
1425 return 0;
1426}
1427
1428static int interpret_branch_mark(struct repository *r,
1429 const char *name, int namelen,

Callers 1

interpret_branch_markFunction · 0.85

Calls 1

starts_withFunction · 0.85

Tested by

no test coverage detected