author | Linus Torvalds <torvalds@osdl.org> | |
Thu, 4 May 2006 00:21:08 +0000 (17:21 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 4 May 2006 05:06:45 +0000 (22:06 -0700) | ||
commit | dcb3450fd8785d76dd3d25aa49be66190aa5e7f3 | |
tree | d67f23c99110c10edb5383bf5d98dc0da16edd39 | tree | snapshot |
parent | 935e714204fe167aa6172a733e7131ee5b4577f4 | commit | diff |
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 <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | diff | blob | history | |
merge-tree.c | diff | blob | history | |
sha1_file.c | diff | blob | history |