X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=repository.h;h=3c1f7d54bd37a55f6cd1b1ac1f936dc0c17b3dab;hb=a08a83db2bf27f015bec9a435f6d73e223c21c5e;hp=6534fbb7b31301aa514c6cfad4f55b03289228b5;hpb=dd094c2b75401f6e1e53e7a5bbfca3c66c44f556;p=thirdparty%2Fgit.git diff --git a/repository.h b/repository.h index 6534fbb7b3..3c1f7d54bd 100644 --- a/repository.h +++ b/repository.h @@ -196,4 +196,10 @@ void repo_update_index_if_able(struct repository *, struct lock_file *); void prepare_repo_settings(struct repository *r); +/* + * Return 1 if upgrade repository format to target_version succeeded, + * 0 if no upgrade is necessary, and -1 when upgrade is not possible. + */ +int upgrade_repository_format(int target_version); + #endif /* REPOSITORY_H */