diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2010-06-14 00:29:38 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-25 08:55:48 -0700 |
commit | f873a273d1381574fd9b2f3f613c0c7e40fe3a1c (patch) | |
tree | db19a5352dfbe8eedb42dd42fa15534ac0a5e76b /Documentation/git-cherry-pick.txt | |
parent | 18c8ff46104302ea30e879a0f2cb5eefb94df1a4 (diff) | |
download | git-f873a273d1381574fd9b2f3f613c0c7e40fe3a1c.tar.gz |
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.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/git-cherry-pick.txt b/Documentation/git-cherry-pick.txt index bcb4c758b7..ca485dbac1 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> |