summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: adbbb31)
raw | patch | inline | side by side (parent: adbbb31)
author | Michael J Gruber <git@drmicha.warpmail.net> | |
Mon, 7 Mar 2011 12:31:41 +0000 (13:31 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 9 Mar 2011 21:50:54 +0000 (13:50 -0800) |
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-list.txt | patch | blob | history | |
Documentation/rev-list-options.txt | patch | blob | history | |
t/t6007-rev-list-cherry-pick-file.sh | patch | blob | history |
index 5f47a13d3c6191a0029e7e64603518346b0198ee..8a891ca68dc9ab3e0d547256166d41db81bf22f5 100644 (file)
[ \--left-right ]
[ \--left-only ]
[ \--right-only ]
+ [ \--cherry-mark ]
[ \--cherry-pick ]
[ \--encoding[=<encoding>] ]
[ \--(author|committer|grep)=<pattern> ]
index cebba62239ad8861160e79255fdbdc4800be5e05..4755b83d2d43457dc8c878f7f7cbee0d8842f254 100644 (file)
to /dev/null as the output does not have to be formatted.
endif::git-rev-list[]
+--cherry-mark::
+
+ Like `--cherry-pick` (see below) but mark equivalent commits
+ with `=` rather than omitting them, and inequivalent ones with `+`.
+
--cherry-pick::
Omit any commit that introduces the same change as
index cd089a913bb93abc882db5a128429dab0d0275db..37bd25eaaaf5cd4daaf59e39549891944874a4a5 100755 (executable)
test_cmp actual.named expect
'
+cat >expect <<EOF
++tags/F
+=tags/D
++tags/E
+=tags/C
+EOF
+
+test_expect_success '--cherry-mark' '
+ git rev-list --cherry-mark F...E -- bar > actual &&
+ git name-rev --stdin --name-only --refs="*tags/*" \
+ < actual > actual.named &&
+ test_cmp actual.named expect
+'
+
+cat >expect <<EOF
+<tags/F
+=tags/D
+>tags/E
+=tags/C
+EOF
+
+test_expect_success '--cherry-mark --left-right' '
+ git rev-list --cherry-mark --left-right F...E -- bar > actual &&
+ git name-rev --stdin --name-only --refs="*tags/*" \
+ < actual > actual.named &&
+ test_cmp actual.named expect
+'
+
cat >expect <<EOF
tags/E
EOF