tui: Add patch save functionality with configurable directory.#1
Open
putnopvut wants to merge 1 commit into
Open
tui: Add patch save functionality with configurable directory.#1putnopvut wants to merge 1 commit into
putnopvut wants to merge 1 commit into
Conversation
Add the ability to save patches and series to disk using the "w" key. Single patches save as individual mbox files, while series are saved to a subdirectory containing all patches in the series. Patch files are named using git format-patch style (e.g., 0001-Fix-bug.patch) based on the patch subject and number. Users can configure where patches are saved using the git config value leadlight.patchDirectory. If set, patches save to that directory under the repository root (created automatically if needed). If not set, patches save to the current working directory. Key bindings: - "w" in table view: save highlighted patch or series - "w" in patch view: save currently viewed patch Saving the patch to disk provides a way for users to open the patch in their editor of choice and send email replies to patches using `git send-email` or their tool of choice. Assisted-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Mark Michelson <mmichels@redhat.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the ability to save patches and series to disk using the "w" key. Single patches save as individual mbox files, while series are saved to a subdirectory containing all patches in the series.
Patch files are named using git format-patch style (e.g., 0001-Fix-bug.patch) based on the patch subject and number.
Users can configure where patches are saved using the git config value leadlight.patchDirectory. If set, patches save to that directory under the repository root (created automatically if needed). If not set, patches save to the current working directory.
Key bindings:
Saving the patch to disk provides a way for users to open the patch in their editor of choice and send email replies to patches using
git send-emailor their tool of choice.Assisted-By: Claude Sonnet 4.5 noreply@anthropic.com