Refreshes the specified patch, or the topmost patch by default.
Documentation that comes before the actual patch in the patch file is
retained.
It is possible to refresh patches that are not on top. If any patches
on top of the patch to refresh modify the same files, the script aborts
by default. Patches can still be refreshed with -f. In that case this
script will print a warning for each shadowed file, changes by more
recent patches will be ignored, and only changes in files that have not
been modified by any more recent patches will end up in the specified
patch.
-p n
[tab]
Create a -p n style patch (-p0 or -p1 supported).
-u, -U num, -c, -C num
[tab]
Create a unified diff (-u, -U) with num lines of context. Create
[tab]
a context diff (-c, -C) with num lines of context. The number of
[tab]
context lines defaults to 3.
--no-timestamps
[tab]
Do not include file timestamps in patch headers.
[tab]
--no-index
[tab]
Do not output Index: lines.
--diffstat
[tab]
Add a diffstat section to the patch header, or replace the
[tab]
existing diffstat section.
-f
[tab]
Enforce refreshing of a patch that is not on top.
--backup
[tab]
Create a backup copy of the old version of a patch as patch~.
--sort
[tab]
Sort files by their name instead of preserving the original order.
--strip-trailing-whitespace
[tab]
Strip trailing whitespace at the end of lines.