Skip to content

Sort patches in expanded series based on patch numbers. - #4

Closed
putnopvut wants to merge 3 commits into
igsilya:mainfrom
putnopvut:sorted_patches
Closed

Sort patches in expanded series based on patch numbers.#4
putnopvut wants to merge 3 commits into
igsilya:mainfrom
putnopvut:sorted_patches

Conversation

@putnopvut

Copy link
Copy Markdown

No description provided.

putnopvut added 3 commits June 8, 2026 11:24
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>
When pressing space to expand a series, the patches are listed in an
arbitrary order. This can make it difficult to view patches in order or
notices on large series that patches are missing (usually due to
patchwork errors).

This commit sorts the patches based on patch number. This solves the
issues stated above.

Signed-off-by: Mark Michelson <mmichels@redhat.com>
@putnopvut putnopvut closed this Sep 1, 2026
@putnopvut

Copy link
Copy Markdown
Author

I closed this PR since it appears to be pulling in more commits than I intended. I need to verify that my fork is synced with yours properly.

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.

1 participant