From: Phillip Wood Date: Fri, 10 Jul 2026 15:18:57 GMT Subject: Re: [PATCH v18 3/7] branch: let delete_branches skip unmerged branches on bulk refusal Message-ID: <97554903-95b2-4b50-9c60-d13edca77e5e@gmail.com> In-Reply-To: Hi Harald On 24/06/2026 22:55, Harald Nordgren via GitGitGadget wrote: > From: Harald Nordgren > > @@ -235,6 +240,7 @@ static int delete_branches(int argc, const char **argv, int kinds, > int remote_branch = 0; > bool force; > bool quiet = flags & DELETE_BRANCH_QUIET; > + bool skip_unmerged = flags & DELETE_BRANCH_SKIP_UNMERGED; The same as the last patch and for the next patch - as we're modifying flags lets keep it as the single source of truth. Thanks Phillip > struct strbuf bname = STRBUF_INIT; > enum interpret_branch_kind allowed_interpret; > struct string_list refs_to_delete = STRING_LIST_INIT_DUP; > @@ -319,7 +325,8 @@ static int delete_branches(int argc, const char **argv, int kinds, > if (!(ref_flags & (REF_ISSYMREF|REF_ISBROKEN)) && > check_branch_commit(bname.buf, name, &oid, head_rev, kinds, > flags)) { > - ret = 1; > + if (!skip_unmerged) > + ret = 1; > goto next; > } >