author | Nicolas Pitre <nico@fluxnic.net> | |
Tue, 23 Feb 2010 20:02:37 +0000 (15:02 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 23 Feb 2010 21:10:56 +0000 (13:10 -0800) | ||
commit | f965c525a4d04837b1b7ed43e3fa2dc8c0df4e2b | |
tree | 7b8cf530834827b86b3bd7ab45e827ab24ce9be7 | tree | snapshot |
parent | 1b22b6c897efa8aec6eeb51f72a73d507d5e336f | commit | diff |
move encode_in_pack_object_header() to a better place
Commit 1b22b6c897 made duplicated versions of encode_header() into a
common version called encode_in_pack_object_header(). There is however
a better location that sha1_file.c for such a function though, as
sha1_file.c contains nothing related to the creation of packs, and
it is quite populated already.
Also the comment that was moved to the header file should really remain
near the function as it covers implementation details and provides no
information about the actual function interface.
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commit 1b22b6c897 made duplicated versions of encode_header() into a
common version called encode_in_pack_object_header(). There is however
a better location that sha1_file.c for such a function though, as
sha1_file.c contains nothing related to the creation of packs, and
it is quite populated already.
Also the comment that was moved to the header file should really remain
near the function as it covers implementation details and provides no
information about the actual function interface.
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
pack-write.c | diff | blob | history | |
pack.h | diff | blob | history | |
sha1_file.c | diff | blob | history |