| 745 | } |
| 746 | |
| 747 | void copy_branchname(struct strbuf *sb, const char *name, |
| 748 | enum interpret_branch_kind allowed) |
| 749 | { |
| 750 | int len = strlen(name); |
| 751 | struct interpret_branch_name_options options = { |
| 752 | .allowed = allowed |
| 753 | }; |
| 754 | int used = repo_interpret_branch_name(the_repository, name, len, sb, |
| 755 | &options); |
| 756 | |
| 757 | if (used < 0) |
| 758 | used = 0; |
| 759 | strbuf_add(sb, name + used, len - used); |
| 760 | } |
| 761 | |
| 762 | int check_branch_ref(struct strbuf *sb, const char *name) |
| 763 | { |
no test coverage detected