| 664 | #endif /* WITH_BREAKING_CHANGES */ |
| 665 | |
| 666 | static const char *remotes_remote_for_branch(struct remote_state *remote_state, |
| 667 | struct branch *branch, |
| 668 | int *explicit) |
| 669 | { |
| 670 | if (branch && branch->remote_name) { |
| 671 | if (explicit) |
| 672 | *explicit = 1; |
| 673 | return branch->remote_name; |
| 674 | } |
| 675 | if (explicit) |
| 676 | *explicit = 0; |
| 677 | if (remote_state->remotes_nr == 1) |
| 678 | return remote_state->remotes[0]->name; |
| 679 | return "origin"; |
| 680 | } |
| 681 | |
| 682 | const char *remote_for_branch(struct branch *branch, int *explicit) |
| 683 | { |
no outgoing calls
no test coverage detected