summaryrefslogtreecommitdiff
path: root/Documentation/git-cherry-pick.txt
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2010-06-14 05:29:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-06-25 15:55:48 (GMT)
commitf873a273d1381574fd9b2f3f613c0c7e40fe3a1c (patch)
treedb19a5352dfbe8eedb42dd42fa15534ac0a5e76b /Documentation/git-cherry-pick.txt
parent18c8ff46104302ea30e879a0f2cb5eefb94df1a4 (diff)
downloadgit-f873a273d1381574fd9b2f3f613c0c7e40fe3a1c.zip
git-f873a273d1381574fd9b2f3f613c0c7e40fe3a1c.tar.gz
git-f873a273d1381574fd9b2f3f613c0c7e40fe3a1c.tar.bz2
revert: accept arbitrary rev-list options
This can be useful to do something like: git rev-list --reverse master -- README | git cherry-pick -n --stdin without using xargs. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-cherry-pick.txt')
-rw-r--r--Documentation/git-cherry-pick.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/git-cherry-pick.txt b/Documentation/git-cherry-pick.txt
index bcb4c75..ca485db 100644
--- a/Documentation/git-cherry-pick.txt
+++ b/Documentation/git-cherry-pick.txt
@@ -113,6 +113,13 @@ git cherry-pick --ff ..next::
are in next but not HEAD to the current branch, creating a new
commit for each new change.
+git rev-list --reverse master \-- README | git cherry-pick -n --stdin::
+
+ Apply the changes introduced by all commits on the master
+ branch that touched README to the working tree and index,
+ so the result can be inspected and made into a single new
+ commit if suitable.
+
Author
------
Written by Junio C Hamano <gitster@pobox.com>