Re: [PATCH v5 09/12] branch: add --column
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 6, 2012, 17:31 UTC
- 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 <pclouds@gmail.com> writes:
Show 21 quoted lines
> +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 #
EOFThanks.