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