Re: [PATCH v8 06/11] reset: introduce ability to skip updating HEAD
On Wed, Jul 1, 2026 at 1:35 PM Patrick Steinhardt <ps@pks.im> wrote:
Show 6 quoted lines
> @@ -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;