Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: [PATCH v2 2/2] object name: introduce '^{/!-<negativepattern>}' notation

From: Stephen & Linda Smith <hidden>
Date: 2016-06-15 23:07:40

On Friday, January 08, 2016 10:21:48 AM Junio C Hamano wrote:
Stephen Smith [off-list ref] writes:
quoted
Junio C Hamano <gitster <at> pobox.com> writes:
quoted
quoted
 	echo modified >>a-blob &&
 	git add -u &&
 	git commit -m Modified &&
+	git branch modref &&
This probably belongs to the previous step, no?
What did you mean by this comment?  I looked at the original patch and at 
Will's response to your comment and am not quite sure what was meant.
Notice that the title is [2/2], so there is [1/2], which turns out
to be http://article.gmane.org/gmane.comp.version-control.git/270898
I had that patch but didn't connect it to your comment.   
That patch updates the preparatory steps of the test script so that
[2/2] have more commits and refs to work with to perform more tests.

Marking the result of that "Modified" commit so that it can be
referenced later with a short name 'modref' is something that should
have done in [1/2], which added that new invocation of "git commit"
to record that "Modified" commit, not in [2/2] as an afterthought
"Oh I created Modified commit in 1/2 so that I can use it in the
test in 2/2, but I forgot to give it a name, so I am adding a new
invocation of 'git branch' in this step".
Yep makes sense.
quoted
quoted
quoted
+test_expect_success 'ref^{/!-}' '
+	test_must_fail git rev-parse master^{/!-}
+'
I plan on leaving this in.
quoted
quoted
+test_expect_success 'ref^{/!-.}' '
+	test_must_fail git rev-parse master^{/!-.}
+'
I plan on leaving this in.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help