Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: [PATCH 1/7] Add a minimal test for git-cherry

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:16

Yann Dirson [off-list ref] writes:
This test checks that git-cherry finds the expected number of patches
in two simple cases.

Signed-off-by: Yann Dirson <redacted>

+test_expect_success \
+    'cherry-pick one of the 2 patches, and check cherry recognized one and only one as new' \
+    'git-cherry-pick my-topic-branch^0 &&
+     echo $(git-cherry master my-topic-branch) &&
+     expr "$(echo $(git-cherry master my-topic-branch) )" : "+ [^ ]* - .*"
+'
I wonder if "+ followed by -" order is stable here.  If you make
commits in the my-topic-branch fast enough, they would get the
same timestamp and I suspect the order from rev-list would be
left to chance.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help