Skip to content

feat: Add functionality to download a patch for a single commit - #11

Merged
Iamliuxiaozhen merged 1 commit into
mainfrom
commit-patch-dow
Sep 16, 2026
Merged

Iamliuxiaozhen merged 1 commit into
mainfrom
commit-patch-dow

Conversation

@Iamliuxiaozhen

Copy link
Copy Markdown
Member

This update adds the ability to download a GitHub commit patch using the --commit parameter in patchsplit, supporting both short and full commit hashes:

  1. Added the --commit (or -commit) command-line argument to specify the commit hash to download.
  2. Implemented comprehensive argument validation, including hash format verification and checks for parameter conflicts.
  3. Updated all documentation: Chinese and English READMEs, Chinese documentation, man pages, and translation files.
  4. Added corresponding unit tests and end-to-end test cases.
  5. Downloaded commit patches are saved directly as <hash>.patch and can be applied immediately using git am.
  6. Prohibited the simultaneous use of the --commit and --squash arguments.

This update adds the ability to download a GitHub commit patch using the `--commit` parameter in `patchsplit`, supporting both short and full commit hashes:
1. Added the `--commit` (or `-commit`) command-line argument to specify the commit hash to download.
2. Implemented comprehensive argument validation, including hash format verification and checks for parameter conflicts.
3. Updated all documentation: Chinese and English READMEs, Chinese documentation, man pages, and translation files.
4. Added corresponding unit tests and end-to-end test cases.
5. Downloaded commit patches are saved directly as `<hash>.patch` and can be applied immediately using `git am`.
6. Prohibited the simultaneous use of the `--commit` and `--squash` arguments.
@Iamliuxiaozhen
Iamliuxiaozhen merged commit 2862aa2 into main Sep 16, 2026
8 checks passed
@Iamliuxiaozhen
Iamliuxiaozhen deleted the commit-patch-dow branch September 16, 2026 12:03
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