index_fd(): turn write_object and format_check arguments into one flag
commitc4ce46fc7ac1b59372aa935e641ca15b12359f5b
authorJunio C Hamano <gitster@pobox.com>
Sun, 8 May 2011 08:47:33 +0000 (8 01:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 May 2011 18:58:19 +0000 (9 11:58 -0700)
tree000be1d69bef6c7129bdc97568d441e6b8e6615a
parent9cedd16c62e12521f35b44e10bba80bfe261e69c
index_fd(): turn write_object and format_check arguments into one flag

The "format_check" parameter tucked after the existing parameters is too
ugly an afterthought to live in any reasonable API.

Combine it with the other boolean parameter "write_object" into a single
"flags" parameter.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/hash-object.c
builtin/update-index.c
cache.h
notes-merge.c
read-cache.c
sha1_file.c