Thread (17 messages) 17 messages, 3 authors, 2016-06-15

Re: [PATCH v7 0/11] port tag.c to use ref-filter APIs

flat view

From: Karthik Nayak <hidden>
Date: 2016-06-15 23:06:03

On Sun, Aug 2, 2015 at 11:02 PM, Matthieu Moy
[off-list ref] wrote:
Karthik Nayak [off-list ref] writes:
quoted
+test_expect_success 'no padding when `padright` length is smaller than atom length' '
+    cat >expect <<-\EOF &&
+    refs/heads/master|
+    refs/heads/side|
+    refs/odd/spot|
+    refs/tags/double-tag|
+    refs/tags/four|
+    refs/tags/one|
+    refs/tags/signed-tag|
+    refs/tags/three|
+    refs/tags/two|
+    EOF
+    git for-each-ref --format="%(padright:5)%(refname)|" >actual &&
     test_cmp expect actual
 '
Nit: I think the test would be better with padright:15 for example, to
show that some lines are aligned and some go beyond the 15 columns.
I've added something like this :)


-- 
Regards,
Karthik Nayak
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help