Thread (1 message) 1 message, 1 author, 2018-08-13

Re: [PATCH] t5318: avoid unnecessary command substitutions

From: Junio C Hamano <hidden>
Date: 2018-08-13 19:05:29

SZEDER Gábor [off-list ref] writes:
-	echo $(git -C repo log --pretty="%ct" -1) \
-		$(git -C repo rev-parse one) >expect &&
+	{
+		git -C repo log --pretty=format:"%ct " -1 &&
+		git -C repo rev-parse one
+	} >expect &&
Heh, "format:"%ct " to make the first one end with an incomplete
line?  Neat trick.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help