| 873 | } |
| 874 | |
| 875 | static struct string_list guess_refs(const char *ref) |
| 876 | { |
| 877 | struct similar_ref_cb ref_cb; |
| 878 | struct string_list similar_refs = STRING_LIST_INIT_DUP; |
| 879 | |
| 880 | ref_cb.base_ref = ref; |
| 881 | ref_cb.similar_refs = &similar_refs; |
| 882 | refs_for_each_ref(get_main_ref_store(the_repository), |
| 883 | append_similar_ref, &ref_cb); |
| 884 | return similar_refs; |
| 885 | } |
| 886 | |
| 887 | NORETURN void help_unknown_ref(const char *ref, const char *cmd, |
| 888 | const char *error) |
no test coverage detected