* Given a 'prefix' expand it by the rules in 'ref_rev_parse_rules' and add * the results to 'prefixes' */
| 656 | * the results to 'prefixes' |
| 657 | */ |
| 658 | void expand_ref_prefix(struct strvec *prefixes, const char *prefix) |
| 659 | { |
| 660 | const char **p; |
| 661 | int len = strlen(prefix); |
| 662 | |
| 663 | for (p = ref_rev_parse_rules; *p; p++) |
| 664 | strvec_pushf(prefixes, *p, len, prefix); |
| 665 | } |
| 666 | |
| 667 | #ifndef WITH_BREAKING_CHANGES |
| 668 | static const char default_branch_name_advice[] = N_( |