From: Jonathan Nieder Date: Sat, 11 Dec 2010 00:51:44 GMT Subject: [RFC/PATCH] cherry-pick/revert: add support for -X/--strategy-option Message-ID: <20101211005144.GA6634@burratino> For example, this would allow cherry-picking or reverting patches from a piece of history with a different end-of-line style, like so: $ git revert -Xrenormalize old-problematic-commit Currently that is possible with manual use of merge-recursive but the cherry-pick/revert porcelain does not expose the functionality. While at it, document the existing support for --strategy. Signed-off-by: Jonathan Nieder --- Thoughts? Documentation/git-cherry-pick.txt | 32 ++++++++++++++++++++++++++++++++ Documentation/git-revert.txt | 10 ++++++++++ builtin/merge.c | 6 ++++-- builtin/revert.c | 29 ++++++++++++++++++++++------- contrib/examples/git-revert.sh | 13 ++++++++++++- merge-recursive.h | 4 +++- t/t3032-merge-recursive-options.sh | 14 ++++++++++++++ 7 files changed, 97 insertions(+), 11 deletions(-) diff --git a/Documentation/git-cherry-pick.txt b/Documentation/git-cherry-pick.txt index 7300870..749d68a 100644 --- a/Documentation/git-cherry-pick.txt +++ b/Documentation/git-cherry-pick.txt @@ -79,6 +79,16 @@ effect to your index in a row. cherry-pick'ed commit, then a fast forward to this commit will be performed. +--strategy=:: + Use the given merge strategy. Should only be used once. + See the MERGE STRATEGIES section in linkgit:git-merge[1] + for details. + +-X