2013/9/7 Bruce Korb <[email protected]>:
> On Fri, Sep 6, 2013 at 2:41 PM, Andreas Grünbacher <[email protected]> wrote:
>> So which part of the behavior of --force is it that you don't want?
>
>        -f  or  --force
>           Assume  that  the user knows exactly what he or she is doing, and do
>           not ask any questions.  [...] files even though they have the wrong
>           version for the Prereq: line in the patch; and assume  that  patches
>           are  not reversed even if they look like they are.
>
> I am looking for "normal" behavior where the answers to the prompts
> is always the default:  No.
> but the question is never asked.
>
> Maybe add an option:  --assume={yes,no}

So that would probably be --batch but while skipping patches which appear
to be applied already.

That could be implemented, but I would not recommend using such a feature.
Patch will only look at the first hunk to determine if a patch can be reverse
applied; you'll never notice when a patch has only been partially applied, or
only appears to have been applied. A slightly better option would be to check
if the entire patch can be reverse applied with --dry-run; at least that works
most of the time.

Andreas

Reply via email to