From: Michael S. Tsirkin Date: Wed, 07 Feb 2007 20:15:11 GMT Subject: [PATCH] add -C[NUM] to git-am Message-ID: <20070207201511.GF12140@mellanox.co.il> Add -C[NUM] to git-am so that patches can be applied even if context has changed a bit. Signed-off-by: Michael S. Tsirkin --- I just had to apply a largish number of patches on a project that has evolved since, and I found the following to be useful. What do others think. diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index aa4ce1d..f7d551e 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -64,6 +64,10 @@ default. You could use `--no-utf8` to override this. This flag is passed to the `git-apply` program that applies the patch. +-C:: + This flag is passed to the `git-apply` program that applies + the patch. + --interactive:: Run interactively, just like git-applymbox. diff --git a/git-am.sh b/git-am.sh index 1252f26..9a61234 100755 --- a/git-am.sh +++ b/git-am.sh @@ -3,7 +3,7 @@ # Copyright (c) 2005, 2006 Junio C Hamano USAGE='[--signoff] [--dotest=] [--utf8 | --no-utf8] [--binary] [--3way] - [--interactive] [--whitespace=