{
    "mode": "man",
    "parameter": "EDIT-PATCH",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/EDIT-PATCH/1/json",
    "generated": "2026-05-30T07:07:29Z",
    "synopsis": "edit-patch path/to/patch\nadd-patch path/to/patch",
    "sections": {
        "NAME": {
            "content": "edit-patch, add-patch - tool for preparing patches for Debian source packages\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "edit-patch path/to/patch\n\nadd-patch path/to/patch\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "edit-patch  is  a wrapper script around the Quilt, CDBS, and dpatch patch systems. It simpli‐\nfies the process of preparing and editing patches to Debian source packages  and  allows  the\nuser to not have to be concerned with which patch system is in use.  Run from inside the root\ndirectory of the source package, edit-patch can be used to edit existing patches  located  in\ndebian/patches.\n\nIt  can  also be used to incorporate new patches.  If pointed at a patch not already present,\nit will copy the patch to debian/patches in the correct format for the patch system  in  use.\nNext,  the patch is applied and a subshell is opened in order to edit the patch.  Typing exit\nor pressing Ctrl-d  will  close  the  subshell  and  launch  an  editor  to  record  the  de‐\nbian/changelog entry.\n\nedit-patch  is integrated with the Bazaar and Git version control systems.  The patch will be\nautomatically added to the tree, and the debian/changelog entry will be used  as  the  commit\nmessage.\n\nIf  no  patch  system  is  present,  the patch is applied inline, and a copy is stored in de‐\nbian/patches-applied.\n\nadd-patch is the non-interactive version of edit-patch.  The patch will be  incorporated  but\nno editor or subshell will be spawned.\n\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "edit-patch  was  written  by  Daniel  Holbach  <daniel.holbach@canonical.com>,  Michael  Vogt\n<michael.vogt@canonical.com>, and David Futcher <bobbo@ubuntu.com>.\n\nThis manual page was written by Andrew Starr-Bochicchio <a.starr.b@gmail.com>.\n\nBoth are released under the terms of the GNU General Public License, version 3.\n\n\n\nDEBIAN                                    Debian Utilities                             EDIT-PATCH(1)",
            "subsections": []
        }
    },
    "summary": "edit-patch, add-patch - tool for preparing patches for Debian source packages",
    "flags": [],
    "examples": [],
    "see_also": []
}