Thread (15 messages) flat view 15 messages, 5 authors, 2016-10-20

Re: [PATCH] rev-list: restore the NUL commit separator in --header mode

From: Torsten Bögershausen <hidden>
Date: 2016-10-20 06:52:12
Subsystem: the rest · Maintainer: Linus Torvalds

diff --git a/t/t6000-rev-list-misc.sh b/t/t6000-rev-list-misc.sh
quoted hunk ↗ jump to hunk
index 3e752ce..a2acff3 100755
--- a/t/t6000-rev-list-misc.sh
+++ b/t/t6000-rev-list-misc.sh
@@ -100,4 +100,11 @@ test_expect_success '--bisect and --first-parent can not be combined' '
  	test_must_fail git rev-list --bisect --first-parent HEAD
  '
  
+test_expect_success '--header shows a NUL after each commit' '
+	touch expect &&
+	printf "\0" > expect &&
Micronit: No ' ' after '>'
(And why do we need the touch ?)

+	printf "\0" >expect &&

+	git rev-list --header --max-count=1 HEAD | tail -n1 >actual &&
+	test_cmp_bin expect actual
+'
+
  test_done
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help