From: Linus Torvalds Date: Thu, 4 May 2006 00:21:08 +0000 (-0700) Subject: sha1_to_hex() usage cleanup X-Git-Tag: v1.4.0-rc1~189 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/dcb3450fd8785d76dd3d25aa49be66190aa5e7f3?ds=inline;hp=dcb3450fd8785d76dd3d25aa49be66190aa5e7f3 sha1_to_hex() usage cleanup Somebody on the #git channel complained that the sha1_to_hex() thing uses a static buffer which caused an error message to show the same hex output twice instead of showing two different ones. That's pretty easily rectified by making it uses a simple LRU of a few buffers, which also allows some other users (that were aware of the buffer re-use) to be written in a more straightforward manner. Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano ---