Thread (59 messages) flat view 59 messages, 8 authors, 2019-02-01

Re: [PATCH v3 1/3] t5323: test cases for git-pack-redundant

From: Johannes Sixt <hidden>
Date: 2019-01-10 07:11:32

Am 10.01.19 um 04:28 schrieb Jiang Xin:
SZEDER Gábor [off-list ref] 于2019年1月9日周三 下午8:56写道:
quoted
Use something like

   find .git/objects -type f | grep -v pack >out &&
   test_must_be_empty out

instead, so we get an informative error message on failure.
if `grep -v pack` return empty output, it will return error, so
I will use `sed -e "/objects\/pack\//d" >out` instead.
So, you could even write this as

	find .git/objects -type f >out &&
	! grep -v pack out	# must be empty
or
	! find .git/objects -type f | grep -v pack

if you want to be terse.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help