[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-patch] [PATCH] Addition of --rm-command to specify the remove comma
From: |
Daniel Gutson |
Subject: |
[bug-patch] [PATCH] Addition of --rm-command to specify the remove command |
Date: |
Fri, 19 Jun 2009 19:44:25 -0300 |
Hi,
the attached patch adds the --rm-command command line option, used to
specify a different 'rm' command, useful to use in source directories
controlled by
revision control systems (such as svn).
If the option is not specified, the original behavior (call to
unlink() ) takes places; otherwise, the parameter of the new option is
used.
For example:
patch -i mypatch.patch -p 0 -E --rm-command 'svn rm'
Daniel.
--
2009-06-19 Daniel Gutson <address@hidden>
* src/patch.c (rm_command): New global.
(main): Updated call to move_file.
(longopts): New option added.
(option_help): New option help added.
(get_some_switches): New option parsing.
* src/util.c (move_file): Use new parameter.
* src/util.h (move_file): Prototype updated.
patch.patch
Description: Text Data
- [bug-patch] [PATCH] Addition of --rm-command to specify the remove command,
Daniel Gutson <=