PATCHSPLIT(1)

NAME
patchsplit - download a GitHub pull request patch and split it by commit

SYNOPSIS
patchsplit <owner/repo> <pr-number>
    [--out dir] [--force ]
patchsplit <owner> <repo> <pr-number>
    [--out dir] [--force ]

DESCRIPTION
patchsplit downloads the patch for a GitHub pull request and splits it into individual patch files, one for each commit.

The resulting patch files are written to the patches directory by default.

OPTIONS

-o, --out dir
    Write split patch files to dir. The default is patches.

-f, --force
    Overwrite existing patch files. By default, existing files are not overwritten.

-h, --help
    Display the help message and exit.

-V, --version
    Display the version and exit.

EXAMPLES

patchsplit rust-lang/rust 12345
    Download and split pull request 12345 from rust-lang/rust.

patchsplit openai codex 42 -o pr-42-patches
    Download pull request 42 from openai/codex and write the resulting patches to pr-42-patches.

REQUIREMENTS
patchsplit uses curl to download pull request patches from GitHub.

SEE ALSO
curl(1)

AUTHORS
Oliver <oliver@liuxiaozhen.dev>