refactor duplicated encode_header in pack-objects and fast-import
authorMichael Lukashov <michael.lukashov@gmail.com>
Tue, 16 Feb 2010 23:42:54 +0000 (23:42 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2010 23:30:20 +0000 (15:30 -0800)
commit1b22b6c897efa8aec6eeb51f72a73d507d5e336f
tree3c5bbefcdabc6c3f5dff047e78cbe8e6426a93a2
parent44e0f450350661b110c61ea0eff2657f58fe6ad0
refactor duplicated encode_header in pack-objects and fast-import

The following function is duplicated:

  encode_header

Move this function to sha1_file.c and rename it 'encode_in_pack_object_header',
as suggested by Junio C Hamano

Signed-off-by: Michael Lukashov <michael.lukashov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c
cache.h
fast-import.c
sha1_file.c