Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v5 09/12] branch: add --column

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:00

Nguyễn Thái Ngọc Duy [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help