From: Matthieu Moy Date: Sun, 02 Aug 2015 17:32:49 GMT Subject: Re: [PATCH v7 0/11] port tag.c to use ref-filter APIs Message-ID: In-Reply-To: Karthik Nayak writes: > +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. -- Matthieu Moy http://www-verimag.imag.fr/~moy/