Thread (1 message) 1 message, 1 author, 2020-11-04

Re: [PATCH 3/3] format-patch: support --output option

From: Junio C Hamano <hidden>
Date: 2020-11-04 18:00:50

Jeff King [off-list ref] writes:
+test_expect_success 'format-patch --output' '
+	rm -fr outfile &&
+	git format-patch -3 --stdout HEAD >expect &&
+	git format-patch -3 --output=outfile HEAD &&
+	test_cmp expect outfile
+'
+
+test_expect_success 'format-patch --cover-letter --output' '
+	rm -fr outfile &&
+	git format-patch --cover-letter -3 --stdout HEAD >expect &&
+	git format-patch --cover-letter -3 --output=outfile HEAD &&
+	test_cmp expect outfile
+'
It is pleasing to see an obvious and clear demonstration that
"--output=X" is equivalent to "--stdout >X".
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help