sequencer: configurably warn on non-existent files
commitbfa50c2c7f0cb806af6d272a84c16f114e15ceee
authorDenton Liu <liu.denton@gmail.com>
Tue, 7 Apr 2020 14:27:53 +0000 (7 10:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Apr 2020 23:57:30 +0000 (7 16:57 -0700)
treee6f08cc9039ed1ce9e08a1d0f9d3dad6891da3d9
parent3442c3d11df16d7cd3867b133a8ec6ddd21a8839
sequencer: configurably warn on non-existent files

In the future, we plan on externing read_oneliner(). Future users of
read_oneliner() will want the ability to output warnings in the event
that the `path` doesn't exist. Introduce the
`READ_ONELINER_WARN_MISSING` flag which, if active, would issue a
warning when a file doesn't exist by always executing warning_errno()
in the case where strbuf_read_file() fails.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c