]> git.ipfire.org Git - thirdparty/git.git/blobdiff - repository.h
Merge branch 'hn/refs-ref-log-only-bit'
[thirdparty/git.git] / repository.h
index 6534fbb7b31301aa514c6cfad4f55b03289228b5..628c8343672dbcbbb6b36f732a6d225c726546e0 100644 (file)
@@ -23,6 +23,7 @@ enum fetch_negotiation_setting {
        FETCH_NEGOTIATION_NONE = 0,
        FETCH_NEGOTIATION_DEFAULT = 1,
        FETCH_NEGOTIATION_SKIPPING = 2,
+       FETCH_NEGOTIATION_NOOP = 3,
 };
 
 struct repo_settings {
@@ -196,4 +197,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 */