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

Re: [PATCH v2 1/2] Add test to describe expectation of blame --reverse with branched history

From: Max Kirillov <hidden>
Date: 2016-06-15 23:07:01

On Wed, Oct 21, 2015 at 09:19:45PM -0700, Junio C Hamano wrote:
Let me try.

 (1) for merges, an edge with '*' denotes the one to the first
     parent.
 (2) a commit that touches file.t are in capital

           c1---a3
          /    *
         /    /
   A0---a1--*a2
     \      /
      b1---B2

Did I draw it correctly?
Yes. Though I would
quoted
+test_expect_failure 'blame --reverse finds B1, not C1' '
+	git blame --porcelain --reverse A0..A3 -- file.t >actual_full &&
+	head -1 <actual_full | sed -e "sX .*XX" >actual &&
"head -n 1" is more POSIXy way to spell this.

Don't get cute with sXXX in sed script when the usual s/// suffices;
the only effect of the cuteness is to waste readers' time, who have
to wonder if there is something interesting going on.
Ok. Will fix it and add the graph.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help