patch: implement -E option
Signed-off-by: Gilles Espinasse <g.esp@free.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
2348e09557
commit
f0c7e0c8d5
2 changed files with 23 additions and 14 deletions
|
@ -2857,17 +2857,19 @@ INSERT
|
|||
"[OPTIONS] [ORIGFILE [PATCHFILE]]"
|
||||
#define patch_full_usage "\n\n" \
|
||||
IF_LONG_OPTS( \
|
||||
" -p,--strip N Strip N leading components from file names" \
|
||||
"\n -i,--input DIFF Read DIFF instead of stdin" \
|
||||
"\n -R,--reverse Reverse patch" \
|
||||
"\n -N,--forward Ignore already applied patches" \
|
||||
"\n --dry-run Don't actually change files" \
|
||||
" -p,--strip N Strip N leading components from file names" \
|
||||
"\n -i,--input DIFF Read DIFF instead of stdin" \
|
||||
"\n -R,--reverse Reverse patch" \
|
||||
"\n -N,--forward Ignore already applied patches" \
|
||||
"\n --dry-run Don't actually change files" \
|
||||
"\n -E,--remove-empty-files Remove output files if they become empty" \
|
||||
) \
|
||||
IF_NOT_LONG_OPTS( \
|
||||
" -p N Strip N leading components from file names" \
|
||||
"\n -i DIFF Read DIFF instead of stdin" \
|
||||
"\n -R Reverse patch" \
|
||||
"\n -N Ignore already applied patches" \
|
||||
"\n -E Remove output files if they become empty" \
|
||||
)
|
||||
|
||||
#define patch_example_usage \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue