This is a rework of Eric's fix (Thanks!), to avoid using strbuf all
the time, even when we are not doing "hash-object --literally".
Eric Sunshine (3):
git-hash-object.txt: document --literally option
write_sha1_file_prepare: fix buffer overrun with extra-long object type
t1007: add hash-object --literally tests
Junio C Hamano (1):
write_sha1_file(): do not use a separate sha1[] array
Documentation/git-hash-object.txt | 10 ++++++++--
builtin/hash-object.c | 4 +---
cache.h | 1 +
sha1_file.c | 32 +++++++++++++++++++++++++++-----
t/t1007-hash-object.sh | 11 +++++++++++
5 files changed, 48 insertions(+), 10 deletions(-)
--
2.4.0-302-g6743426