There is no guarantee that strbuf_read_file must error out for
directories. On some operating systems (e.g., Debian GNU/kFreeBSD
wheezy), reading a directory gives its raw content:
$ head -c5 / | cat -A
^AM-|^_^@^L$
As a result, 'git diff -O/' succeeds instead of erroring out
Jonathan Nieder jrnie...@gmail.com writes:
There is no guarantee that strbuf_read_file must error out for
directories. On some operating systems (e.g., Debian GNU/kFreeBSD
wheezy), reading a directory gives its raw content:
$ head -c5 / | cat -A
^AM-|^_^@^L$
As a result,
2 matches
Mail list logo