From: Christian Couder Date: Fri, 03 Jul 2026 06:59:30 GMT Subject: Re: [PATCH v8 06/11] reset: introduce ability to skip updating HEAD Message-ID: In-Reply-To: <20260701-b4-pks-history-drop-v8-6-19b5cdf1facd@pks.im> On Wed, Jul 1, 2026 at 1:35 PM Patrick Steinhardt wrote: > @@ -113,6 +114,9 @@ int reset_working_tree(struct repository *r, > if (opts->branch_msg && !opts->branch) > BUG("branch reflog message given without a branch"); > > + if (update_orig_head && !update_head) > + BUG("cannot update ORIG_HEAD without updating HEAD" ); There is a spurious space character between `HEAD"` and `);`. > + > if (!refs_only && !dry_run && repo_hold_locked_index(r, &lock, LOCK_REPORT_ON_ERROR) < 0) { > ret = -1; > goto leave_reset_head;