Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Find size of SHA1 object without inflating everything.

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:41:59

quoted
quoted
quoted
quoted
"LT" == Linus Torvalds [off-list ref] writes:
LT> On Thu, 2 Jun 2005, Junio C Hamano wrote:
quoted
+int sha1_file_size(const unsigned char *sha1, unsigned long *sizep)
LT> ...
quoted
+	ret = unpack_sha1_header(&stream, map, mapsize, hdr, sizeof(hdr));
LT> ...
quoted
+	delta_data_head = unpack_sha1_rest(&stream, hdr, 200);
LT> Why do you do this?

Because I was not thinking when I wrote "char hdr[1024]".  

Nico pointed out the same problem and you have a fixed version
of both in your mailbox.



Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help