implement patch / apply / revert #25

Closed
opened 2025-05-03 23:56:59 +00:00 by hugooconnor · 0 comments
hugooconnor commented 2025-05-03 23:56:59 +00:00 (Migrated from codeberg.org)

As a user, I should be able to easily apply AI suggested changes to my files, through the creation of patches, and also to revert those changes.

llm-md patch my-file.md

This command should take the last AI response, generate patch files for each of the suggested changes to my files, and apply those changes.

llm-md revert my-file.md -- patched-file.js

This command should revert the last patch that was applied from my-file.md to patched-file.js

llm-md revert my-file.md

This command should revert all the patches applied from the last AI response message.

As a user, I should be able to easily apply AI suggested changes to my files, through the creation of patches, and also to revert those changes. ``` llm-md patch my-file.md ``` This command should take the last AI response, generate patch files for each of the suggested changes to my files, and apply those changes. ``` llm-md revert my-file.md -- patched-file.js ``` This command should revert the last patch that was applied from my-file.md to patched-file.js ``` llm-md revert my-file.md ``` This command should revert all the patches applied from the last AI response message.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
anuna-research/llm-md#25
No description provided.