Skip to content

Add --amend flag to patch command for continuing edits#8

Merged
nomyfan merged 1 commit into
mainfrom
claude/ecstatic-mccarthy-i84Ji
May 25, 2026
Merged

Add --amend flag to patch command for continuing edits#8
nomyfan merged 1 commit into
mainfrom
claude/ecstatic-mccarthy-i84Ji

Conversation

@nomyfan
Copy link
Copy Markdown
Owner

@nomyfan nomyfan commented May 25, 2026

Summary

Added documentation for a new --amend flag to the p12y patch command that allows users to continue editing an existing patch rather than starting from a clean workspace.

Changes

  • Updated the p12y patch command signature in the CLI overview to include the optional [--amend] flag
  • Added a new section in the usage guide explaining the --amend functionality:
    • Describes how --amend applies an existing patch file from patches/<package-name>+<version>.patch onto a fresh workspace
    • Documents the fallback behavior: if the patch cannot be applied cleanly, p12y uses a clean workspace and logs a warning
    • Provides a usage example showing how to invoke the command with the flag

Implementation Details

The documentation clarifies that --amend enables a workflow where users can:

  1. Start with their previous changes already applied to the workspace
  2. Continue making edits without losing prior work
  3. Gracefully fall back to a clean state if the patch has conflicts with the package version

https://claude.ai/code/session_01N7buw5s2ZLYy4TWbarXWRe

Sync SKILL.md with PR #7 which added the --amend option to `p12y patch`.
Documents the flag in the command synopsis and in the standard workflow
section, including fallback behaviour when the patch cannot be applied.

https://claude.ai/code/session_01N7buw5s2ZLYy4TWbarXWRe
@nomyfan nomyfan merged commit e93c949 into main May 25, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants