| 589 | } |
| 590 | |
| 591 | static void output_refs(struct ref *refs) |
| 592 | { |
| 593 | struct ref *posn; |
| 594 | if (options.object_format && options.hash_algo) { |
| 595 | printf(":object-format %s\n", options.hash_algo->name); |
| 596 | repo_set_hash_algo(the_repository, |
| 597 | hash_algo_by_ptr(options.hash_algo)); |
| 598 | } |
| 599 | for (posn = refs; posn; posn = posn->next) { |
| 600 | if (posn->symref) |
| 601 | printf("@%s %s\n", posn->symref, posn->name); |
| 602 | else |
| 603 | printf("%s %s\n", hash_to_hex_algop(posn->old_oid.hash, |
| 604 | options.hash_algo), |
| 605 | posn->name); |
| 606 | } |
| 607 | printf("\n"); |
| 608 | fflush(stdout); |
| 609 | } |
| 610 | |
| 611 | struct rpc_state { |
| 612 | const char *service_name; |
no test coverage detected