From: Junio C Hamano Date: Mon, 06 Feb 2012 17:31:16 GMT Subject: Re: [PATCH v5 09/12] branch: add --column Message-ID: <7v7gzz98d7.fsf@alter.siamese.dyndns.org> In-Reply-To: <1328371156-4009-10-git-send-email-pclouds@gmail.com> Nguyễn Thái Ngọc Duy writes: > +test_expect_success 'git branch -v with column.ui ignored' ' > + git config column.ui column && > + COLUMNS=80 git branch -v | cut -c -10 >actual && > + git config --unset column.ui && > + cat >expected <<\EOF && > + a/b/c > + abc > + bam > + bar > + foo > + j/k > + l > + m/m > +* master > + master2 > + n > + o/o > + o/p > + q > + r > +EOF For a test like these where you expect whitespaces at the end, please make sure that these whitespaces are visible to people who read test scripts, by doing something like this instead: sed -e 's/#$//' >expected <<\EOF a/b/c # abc # bam # bar # foo # EOF Thanks.