Skip to content

Renaming or moving an edited copy freezes it again #373

Open

Description

@willgosnold

A copied file whose copy has its own edit follows upstream after #368: the edit records as file <dest> and sync merges upstream's changes into it. Renaming that copy, for example git mv skills/b skills/c then record, writes delete skills/b/SKILL.md and add skills/c/SKILL.md. After that, skills/c/SKILL.md keeps its edit but no longer receives upstream changes to the source.

Main records the same rows, so this is not a regression of #368, and the PR lists it as a tradeoff. But once edited copies follow upstream, users will expect a rename to keep that.

Possible fix: record the renamed copy as copy <source> -> <new path> plus file <new path>, or move the destination's file edit and its copies along with the rename.

Found during review of #368 (design review and live verification).

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions