Skip to content

"hash-object --literally" fixes

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4git-hash-object.txt: document --literally optionDocumentation/git-hash-object.txt+8 -20 replies
2/4write_sha1_file_prepare: fix buffer overrun with extra-long object typebuiltin/hash-object.c cache.h sha1_file.c+27 -34 replies
3/4t1007: add hash-object --literally testst/t1007-hash-object.sh+11 -00 replies
4/4write_sha1_file(): do not use a separate sha1[] arraysha1_file.c+1 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] "hash-object --literally" fixes

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(-)
Signature · 1 line
2.4.0-302-g6743426