| 2753 | } |
| 2754 | |
| 2755 | static int for_each_bisect_ref(struct ref_store *refs, refs_for_each_cb fn, |
| 2756 | void *cb_data, const char *term) |
| 2757 | { |
| 2758 | struct refs_for_each_ref_options opts = { 0 }; |
| 2759 | struct strbuf bisect_refs = STRBUF_INIT; |
| 2760 | int status; |
| 2761 | strbuf_addf(&bisect_refs, "refs/bisect/%s", term); |
| 2762 | opts.prefix = bisect_refs.buf; |
| 2763 | status = refs_for_each_ref_ext(refs, fn, cb_data, &opts); |
| 2764 | strbuf_release(&bisect_refs); |
| 2765 | return status; |
| 2766 | } |
| 2767 | |
| 2768 | static int for_each_bad_bisect_ref(struct ref_store *refs, refs_for_each_cb fn, void *cb_data) |
| 2769 | { |
no test coverage detected