Thread (119 messages) 119 messages, 6 authors, 1d ago

Re: [PATCH v8 06/11] reset: introduce ability to skip updating HEAD

From: Christian Couder <hidden>
Date: 2026-07-03 06:59:44

On Wed, Jul 1, 2026 at 1:35 PM Patrick Steinhardt [off-list ref] wrote:
quoted hunk ↗ jump to hunk
@@ -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;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help