bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

2.6.1: patch / add option -S, --simulate


From: Jari Aalto
Subject: 2.6.1: patch / add option -S, --simulate
Date: Sun, 15 Apr 2012 10:07:15 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

It would be nice if the applicability of patch could be tested before it is
actually applied. With patches that span multiple files this is even more
handy.

The git-apply(1) command contains option --check to simulate applying a
patch. It's output looks like:

    warning: src/Config.tmpl_solaris has type 100755, expected 100644
    warning: src/Config.tmpl_solaris.gcc has type 100755, expected 100644
    warning: src/Config.tmpl_sunos has type 100755, expected 100644
    error: src/Makefile: wrong type
    error: patch failed: src/dg/Makefile:141
    error: src/dg/Makefile: patch does not apply

I'm proposing similar functionality:

    warning: For fuzz hunks
    error: for failures

to be added to patch(1) as well. The possible options could be:

    -S, --simulate

Jari



reply via email to

[Prev in Thread] Current Thread [Next in Thread]