| 2163 | } |
| 2164 | |
| 2165 | int resolve_remote_symref(struct ref *ref, struct ref *list) |
| 2166 | { |
| 2167 | if (!ref->symref) |
| 2168 | return 0; |
| 2169 | for (; list; list = list->next) |
| 2170 | if (!strcmp(ref->symref, list->name)) { |
| 2171 | oidcpy(&ref->old_oid, &list->old_oid); |
| 2172 | return 0; |
| 2173 | } |
| 2174 | return 1; |
| 2175 | } |
| 2176 | |
| 2177 | /* |
| 2178 | * Compute the commit ahead/behind values for the pair branch_name, base. |
no test coverage detected