Re: [PATCH v4 2/3] diff: Let "git diff -O" read orderfile from any file, fail properly
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 17, 2013, 22:09 UTC
- Message-ID
- <xmqq4n67m8og.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CALWbr2zXNF-aJHHnBnW1q1yaCmWt-rmMWypBWFanTBAK1pMWiQ@mail.gmail.com>
Antoine Pelisse <apelisse@gmail.com> writes:
>> How about not doing a fifo? > > That would certainly defeat the purpose of the test, which is to test > against a fifo :-)
My point was that I did not see much value in reading the orderfile data from anything but a file. At that point, you are not testing the "diff -O" orderfile option, but if strbuf_readline() reads from a non-regular file.