{
    "mode": "man",
    "parameter": "splitdiff",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/splitdiff/1/json",
    "generated": "2026-09-01T19:20:21Z",
    "synopsis": "splitdiff [-a] [-d] [-D dir] [-p n] [-E] [file]\nsplitdiff {[--help] | [--version]}",
    "sections": {
        "NAME": {
            "content": "splitdiff - separate out incremental patches\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "splitdiff [-a] [-d] [-D dir] [-p n] [-E] [file]\n\nsplitdiff {[--help] | [--version]}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "If you have a patch file composed of several incremental patches, you can use splitdiff to\nseparate them out. You may want to do this in preparation for re-combining them with\ncombinediff(1).\n\nThe effect of running splitdiff is to separate its input into a set of output files, with no\noutput file patching the same file more than once.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-a",
                    "content": "Split out every single file-level patch.\n",
                    "flag": "-a"
                },
                {
                    "name": "-d",
                    "content": "Create file names such as ab.c.patch for a patch that modifies a/b.c.\n",
                    "flag": "-d"
                },
                {
                    "name": "-D _",
                    "content": "Write output files into subdirectory dir. Implies -d.\n",
                    "flag": "-D"
                },
                {
                    "name": "-p _",
                    "content": "Strip the first n components of the pathname to aid comparisons.\n",
                    "flag": "-p"
                },
                {
                    "name": "-E",
                    "content": "Don't use .patch filename extension when writing output files.\n",
                    "flag": "-E"
                },
                {
                    "name": "--help",
                    "content": "Display a short usage message.\n",
                    "long": "--help"
                },
                {
                    "name": "--version",
                    "content": "Display the version number of splitdiff.\n",
                    "long": "--version"
                }
            ]
        },
        "SEE ALSO": {
            "content": "combinediff(1), lsdiff(1)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Tim Waugh <twaugh@redhat.com>\nPackage maintainer\n\npatchutils                                   4 Nov 2014                                 SPLITDIFF(1)",
            "subsections": []
        }
    },
    "summary": "splitdiff - separate out incremental patches",
    "flags": [
        {
            "flag": "-a",
            "long": null,
            "arg": null,
            "description": "Split out every single file-level patch."
        },
        {
            "flag": "-d",
            "long": null,
            "arg": null,
            "description": "Create file names such as ab.c.patch for a patch that modifies a/b.c."
        },
        {
            "flag": "-D",
            "long": null,
            "arg": null,
            "description": "Write output files into subdirectory dir. Implies -d."
        },
        {
            "flag": "-p",
            "long": null,
            "arg": null,
            "description": "Strip the first n components of the pathname to aid comparisons."
        },
        {
            "flag": "-E",
            "long": null,
            "arg": null,
            "description": "Don't use .patch filename extension when writing output files."
        },
        {
            "flag": "",
            "long": "--help",
            "arg": null,
            "description": "Display a short usage message."
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Display the version number of splitdiff."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "combinediff",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/combinediff/1/json"
        },
        {
            "name": "lsdiff",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/lsdiff/1/json"
        }
    ]
}