Skip to content

Lab: a port-to-upstream recipe (worktree from origin/main + per-file apply -3), never cherry-pick --abort #89

Done

Description

@mareklangiewicz

Lab issue (neospector lua/myemmylabcli.lua; recipe in fork docs/agents/measuring.md "porting a fix upstream"). Part of #17.

What happened

Porting #86's fix to an upstream branch (upstream PR 1458) used git worktree add -b T origin/main and then git diff A^ B -- F | git apply -3 for each file. An earlier attempt with cherry-pick hit conflicts, and cherry-pick --abort threw away resolutions that were already done (2026-11-24).

Proposed (unprobed)

Start with the recipe in measuring.md: a new worktree from origin/main, then apply -3 per file of the fork range, never cherry-pick --abort. Add a lab command only if the recipe keeps being run by hand. Such a command would make the worktree (with its own target/, per AGENTS.md), apply the fork commits' diff with -3, list the conflicted files and stop. It never aborts.

Activity

  1. mareklangiewicz commented on Nov 24, 2026

    @mareklangiewicz
    OwnerAuthor

    Recipe added to fork docs/agents/measuring.md "Porting a fork fix upstream" (first bullet), 1ce9a6d, unpushed. No lab command yet: the issue said to add one only if the recipe keeps being run by hand. Reopen if it does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions