Merge branch 'jc/hash-object' into maint
commit1e6c8babf86d8564104e159ce46df069c882a5af
authorJunio C Hamano <gitster@pobox.com>
Tue, 26 May 2015 20:49:24 +0000 (26 13:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 May 2015 20:49:25 +0000 (26 13:49 -0700)
treef92f0c6616c662aa02ee4ede034bd5a05f70ba11
parent5d5343386414d6097cdba797c88e3bc043dc0074
parent1427a7ff70bce0c1040831d5d674c83ebcda6d7d
Merge branch 'jc/hash-object' into maint

"hash-object --literally" introduced in v2.2 was not prepared to
take a really long object type name.

* jc/hash-object:
  write_sha1_file(): do not use a separate sha1[] array
  t1007: add hash-object --literally tests
  hash-object --literally: fix buffer overrun with extra-long object type
  git-hash-object.txt: document --literally option
builtin/hash-object.c
cache.h
sha1_file.c
t/t1007-hash-object.sh