sha1_object_info_extended(): add an "unsigned flags" parameter
This parameter is not used yet, but it will be used to tell sha1_object_info_extended() if it should perform object replacement or not. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
bf93eea0f6
commit
de7b5d6218
@ -238,7 +238,7 @@ static int batch_one_object(const char *obj_name, struct batch_options *opt,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (sha1_object_info_extended(data->sha1, &data->info) < 0) {
|
||||
if (sha1_object_info_extended(data->sha1, &data->info, LOOKUP_REPLACE_OBJECT) < 0) {
|
||||
printf("%s missing\n", obj_name);
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user