{
    "content": [
        {
            "type": "text",
            "text": "# FLIPDIFF(1) (man)\n\n**Summary:** flipdiff - exchange the order of two incremental patches\n\n**Synopsis:** flipdiff [[-p n] | [--strip-match=n]] [[-U n] | [--unified=n]] [[-d PAT] |\n[--drop-context=PAT]] [[-q] | [--quiet]] [[-z] | [--decompress]] [[-b] |\n[--ignore-space-change]] [[-B] | [--ignore-blank-lines]] [[-i] | [--ignore-case]]\n[[-w] | [--ignore-all-space]] [--in-place] diff1 diff2\nflipdiff {[--help] | [--version]}\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -p | — | — | When comparing filenames, ignore the first n pathname components from both patches. (This is similar to the -p option to |\n| -q | --quiet | — | Quieter output. Don't emit rationale lines at the beginning of each patch. |\n| -U | — | — | Attempt to display n lines of context (requires at least n lines of context in both input files). (This is similar to th |\n| -d | — | — | Don't display any context on files that match the shell wildcard pattern. This option can be given multiple times. Note  |\n| -i | --ignore-case | — | Consider upper- and lower-case to be the same. |\n| -w | --ignore-all-space | — | Ignore whitespace changes in patches. |\n| -b | --ignore-space-change | — | Ignore changes in the amount of whitespace. |\n| -B | --ignore-blank-lines | — | Ignore changes whose lines are all blank. |\n| -z | --decompress | — | Decompress files with extensions .gz and .bz2. |\n| — | --in-place | — | Write output to the original input files. |\n| — | --help | — | Display a short usage message. |\n| — | --version | — | Display the version number of flipdiff. |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (7 lines)\n- **DESCRIPTION** (7 lines)\n- **OPTIONS** (1 lines) — 12 subsections\n  - -p --strip-match= (3 lines)\n  - -q --quiet (2 lines)\n  - -U --unified= (3 lines)\n  - -d --drop-context= (8 lines)\n  - -i --ignore-case (2 lines)\n  - -w --ignore-all-space (2 lines)\n  - -b --ignore-space-change (2 lines)\n  - -B --ignore-blank-lines (2 lines)\n  - -z --decompress (2 lines)\n  - --in-place (2 lines)\n  - --help (2 lines)\n  - --version (2 lines)\n- **LIMITATIONS** (11 lines)\n- **AUTHOR** (6 lines)\n\n## Full Content\n\n### NAME\n\nflipdiff - exchange the order of two incremental patches\n\n### SYNOPSIS\n\nflipdiff [[-p n] | [--strip-match=n]] [[-U n] | [--unified=n]] [[-d PAT] |\n[--drop-context=PAT]] [[-q] | [--quiet]] [[-z] | [--decompress]] [[-b] |\n[--ignore-space-change]] [[-B] | [--ignore-blank-lines]] [[-i] | [--ignore-case]]\n[[-w] | [--ignore-all-space]] [--in-place] diff1 diff2\n\nflipdiff {[--help] | [--version]}\n\n### DESCRIPTION\n\nflipdiff exchanges the order of two patch files that apply one after the other. The patches\nmust be “clean”: the context lines must match and there should be no mis-matched offsets.\n\nThe swapped patches are sent to standard output, with a marker line\n(“=== 8< === cut here === 8< ===”) between them, unless the --in-place option is passed. In\nthat case, the output is written back to the original input files.\n\n### OPTIONS\n\n#### -p --strip-match=\n\nWhen comparing filenames, ignore the first n pathname components from both patches. (This\nis similar to the -p option to GNU patch(1).)\n\n#### -q --quiet\n\nQuieter output. Don't emit rationale lines at the beginning of each patch.\n\n#### -U --unified=\n\nAttempt to display n lines of context (requires at least n lines of context in both input\nfiles). (This is similar to the -U option to GNU diff(1).)\n\n#### -d --drop-context=\n\nDon't display any context on files that match the shell wildcard pattern. This option can\nbe given multiple times.\n\nNote that the interpretation of the shell wildcard pattern does not count slash\ncharacters or periods as special (in other words, no flags are given to fnmatch). This is\nso that “*/basename”-type patterns can be given without limiting the number of pathname\ncomponents.\n\n#### -i --ignore-case\n\nConsider upper- and lower-case to be the same.\n\n#### -w --ignore-all-space\n\nIgnore whitespace changes in patches.\n\n#### -b --ignore-space-change\n\nIgnore changes in the amount of whitespace.\n\n#### -B --ignore-blank-lines\n\nIgnore changes whose lines are all blank.\n\n#### -z --decompress\n\nDecompress files with extensions .gz and .bz2.\n\n#### --in-place\n\nWrite output to the original input files.\n\n#### --help\n\nDisplay a short usage message.\n\n#### --version\n\nDisplay the version number of flipdiff.\n\n### LIMITATIONS\n\nThis is only been very lightly tested, and may not even work. Using --in-place is not\nrecommended at the moment.\n\nThere are some cases in which it is not possible to meaningfully flip patches without\nunderstanding the semantics of the content. This program only uses complete lines that appear\nat some stage during the application of the two patches, and never composes a line from\nparts.\n\nBecause of this, it is generally a good idea to read through the output to check that it\nmakes sense.\n\n### AUTHOR\n\nTim Waugh <twaugh@redhat.com>\nPackage maintainer\n\n\n\npatchutils                                 23 January 2009                               FLIPDIFF(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "FLIPDIFF",
        "section": "1",
        "mode": "man",
        "summary": "flipdiff - exchange the order of two incremental patches",
        "synopsis": "flipdiff [[-p n] | [--strip-match=n]] [[-U n] | [--unified=n]] [[-d PAT] |\n[--drop-context=PAT]] [[-q] | [--quiet]] [[-z] | [--decompress]] [[-b] |\n[--ignore-space-change]] [[-B] | [--ignore-blank-lines]] [[-i] | [--ignore-case]]\n[[-w] | [--ignore-all-space]] [--in-place] diff1 diff2\nflipdiff {[--help] | [--version]}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-p",
                "long": null,
                "arg": null,
                "description": "When comparing filenames, ignore the first n pathname components from both patches. (This is similar to the -p option to GNU patch(1).)"
            },
            {
                "flag": "-q",
                "long": "--quiet",
                "arg": null,
                "description": "Quieter output. Don't emit rationale lines at the beginning of each patch."
            },
            {
                "flag": "-U",
                "long": null,
                "arg": null,
                "description": "Attempt to display n lines of context (requires at least n lines of context in both input files). (This is similar to the -U option to GNU diff(1).)"
            },
            {
                "flag": "-d",
                "long": null,
                "arg": null,
                "description": "Don't display any context on files that match the shell wildcard pattern. This option can be given multiple times. Note that the interpretation of the shell wildcard pattern does not count slash characters or periods as special (in other words, no flags are given to fnmatch). This is so that “*/basename”-type patterns can be given without limiting the number of pathname components."
            },
            {
                "flag": "-i",
                "long": "--ignore-case",
                "arg": null,
                "description": "Consider upper- and lower-case to be the same."
            },
            {
                "flag": "-w",
                "long": "--ignore-all-space",
                "arg": null,
                "description": "Ignore whitespace changes in patches."
            },
            {
                "flag": "-b",
                "long": "--ignore-space-change",
                "arg": null,
                "description": "Ignore changes in the amount of whitespace."
            },
            {
                "flag": "-B",
                "long": "--ignore-blank-lines",
                "arg": null,
                "description": "Ignore changes whose lines are all blank."
            },
            {
                "flag": "-z",
                "long": "--decompress",
                "arg": null,
                "description": "Decompress files with extensions .gz and .bz2."
            },
            {
                "flag": "",
                "long": "--in-place",
                "arg": null,
                "description": "Write output to the original input files."
            },
            {
                "flag": "",
                "long": "--help",
                "arg": null,
                "description": "Display a short usage message."
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Display the version number of flipdiff."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-p --strip-match=",
                        "lines": 3,
                        "flag": "-p"
                    },
                    {
                        "name": "-q --quiet",
                        "lines": 2,
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-U --unified=",
                        "lines": 3,
                        "flag": "-U"
                    },
                    {
                        "name": "-d --drop-context=",
                        "lines": 8,
                        "flag": "-d"
                    },
                    {
                        "name": "-i --ignore-case",
                        "lines": 2,
                        "flag": "-i",
                        "long": "--ignore-case"
                    },
                    {
                        "name": "-w --ignore-all-space",
                        "lines": 2,
                        "flag": "-w",
                        "long": "--ignore-all-space"
                    },
                    {
                        "name": "-b --ignore-space-change",
                        "lines": 2,
                        "flag": "-b",
                        "long": "--ignore-space-change"
                    },
                    {
                        "name": "-B --ignore-blank-lines",
                        "lines": 2,
                        "flag": "-B",
                        "long": "--ignore-blank-lines"
                    },
                    {
                        "name": "-z --decompress",
                        "lines": 2,
                        "flag": "-z",
                        "long": "--decompress"
                    },
                    {
                        "name": "--in-place",
                        "lines": 2,
                        "long": "--in-place"
                    },
                    {
                        "name": "--help",
                        "lines": 2,
                        "long": "--help"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "LIMITATIONS",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "flipdiff - exchange the order of two incremental patches\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "flipdiff [[-p n] | [--strip-match=n]] [[-U n] | [--unified=n]] [[-d PAT] |\n[--drop-context=PAT]] [[-q] | [--quiet]] [[-z] | [--decompress]] [[-b] |\n[--ignore-space-change]] [[-B] | [--ignore-blank-lines]] [[-i] | [--ignore-case]]\n[[-w] | [--ignore-all-space]] [--in-place] diff1 diff2\n\nflipdiff {[--help] | [--version]}\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "flipdiff exchanges the order of two patch files that apply one after the other. The patches\nmust be “clean”: the context lines must match and there should be no mis-matched offsets.\n\nThe swapped patches are sent to standard output, with a marker line\n(“=== 8< === cut here === 8< ===”) between them, unless the --in-place option is passed. In\nthat case, the output is written back to the original input files.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-p --strip-match=",
                        "content": "When comparing filenames, ignore the first n pathname components from both patches. (This\nis similar to the -p option to GNU patch(1).)\n",
                        "flag": "-p"
                    },
                    {
                        "name": "-q --quiet",
                        "content": "Quieter output. Don't emit rationale lines at the beginning of each patch.\n",
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-U --unified=",
                        "content": "Attempt to display n lines of context (requires at least n lines of context in both input\nfiles). (This is similar to the -U option to GNU diff(1).)\n",
                        "flag": "-U"
                    },
                    {
                        "name": "-d --drop-context=",
                        "content": "Don't display any context on files that match the shell wildcard pattern. This option can\nbe given multiple times.\n\nNote that the interpretation of the shell wildcard pattern does not count slash\ncharacters or periods as special (in other words, no flags are given to fnmatch). This is\nso that “*/basename”-type patterns can be given without limiting the number of pathname\ncomponents.\n",
                        "flag": "-d"
                    },
                    {
                        "name": "-i --ignore-case",
                        "content": "Consider upper- and lower-case to be the same.\n",
                        "flag": "-i",
                        "long": "--ignore-case"
                    },
                    {
                        "name": "-w --ignore-all-space",
                        "content": "Ignore whitespace changes in patches.\n",
                        "flag": "-w",
                        "long": "--ignore-all-space"
                    },
                    {
                        "name": "-b --ignore-space-change",
                        "content": "Ignore changes in the amount of whitespace.\n",
                        "flag": "-b",
                        "long": "--ignore-space-change"
                    },
                    {
                        "name": "-B --ignore-blank-lines",
                        "content": "Ignore changes whose lines are all blank.\n",
                        "flag": "-B",
                        "long": "--ignore-blank-lines"
                    },
                    {
                        "name": "-z --decompress",
                        "content": "Decompress files with extensions .gz and .bz2.\n",
                        "flag": "-z",
                        "long": "--decompress"
                    },
                    {
                        "name": "--in-place",
                        "content": "Write output to the original input files.\n",
                        "long": "--in-place"
                    },
                    {
                        "name": "--help",
                        "content": "Display a short usage message.\n",
                        "long": "--help"
                    },
                    {
                        "name": "--version",
                        "content": "Display the version number of flipdiff.\n",
                        "long": "--version"
                    }
                ]
            },
            "LIMITATIONS": {
                "content": "This is only been very lightly tested, and may not even work. Using --in-place is not\nrecommended at the moment.\n\nThere are some cases in which it is not possible to meaningfully flip patches without\nunderstanding the semantics of the content. This program only uses complete lines that appear\nat some stage during the application of the two patches, and never composes a line from\nparts.\n\nBecause of this, it is generally a good idea to read through the output to check that it\nmakes sense.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Tim Waugh <twaugh@redhat.com>\nPackage maintainer\n\n\n\npatchutils                                 23 January 2009                               FLIPDIFF(1)",
                "subsections": []
            }
        }
    }
}