]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
write_idx_file: introduce a struct to hold idx customization options
authorJunio C Hamano <gitster@pobox.com>
Fri, 25 Feb 2011 23:43:25 +0000 (15:43 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Feb 2011 07:29:03 +0000 (23:29 -0800)
commitebcfb3791a53e0455bf8361046e3310993697a8e
treee9aa6131bcc77beab6d4a5f4665ab815e1f0fe5c
parent7218a215efc7ae46f7ca8d82442f354e7ac06262
write_idx_file: introduce a struct to hold idx customization options

Remove two globals, pack_idx_default version and pack_idx_off32_limit,
and place them in a pack_idx_option structure.  Allow callers to pass
it to write_idx_file() as a parameter.

Adjust all callers to the API change.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c
builtin/pack-objects.c
fast-import.c
pack-write.c
pack.h