Re: [PATCH v12 04/13] bisect--helper: `bisect_clean_state` shell function in C
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 12, 2016, 19:24 UTC
- Message-ID
- <xmqqlh01x02d.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <010201567675ae50-4349bd9e-54a4-44e5-aabb-1d928126b237-000000@eu-west-1.amazonses.com>
Pranit Bauva <pranit.bauva@gmail.com> writes:
Show 9 quoted lines
> +static int bisect_clean_state(void)
> +{
> + int result = 0;
> +
> + /* There may be some refs packed during bisection */
> + struct string_list refs_for_removal = STRING_LIST_INIT_NODUP;
> + for_each_ref_in("refs/bisect/", mark_for_removal, (void *) &refs_for_removal);
> + string_list_append(&refs_for_removal, xstrdup("BISECT_HEAD"));
> + result = delete_refs(&refs_for_removal);I think this function has changed its signature recently. I am planning to tag 2.10-rc0 this weekend, and it may be a good time to rebase the series on to an updated codebase.