| 1410 | } |
| 1411 | |
| 1412 | static 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 | |
| 1428 | static int interpret_branch_mark(struct repository *r, |
| 1429 | const char *name, int namelen, |
no test coverage detected