Re: [PATCH 3/3] format-patch: support --output option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 4, 2020, 18:00 UTC
- Message-ID
- <xmqq361pngs4.fsf@gitster.c.googlers.com>
- In-Reply-To
- <20201104132907.GC3030146@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 13 quoted lines
> +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".