]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit.h
fetch: add --unshallow for turning shallow repo into complete one
[thirdparty/git.git] / commit.h
index 9f2131318d4c43fdaaca40e45e45e7d1af61cdfe..0adfce96e46aa9e9017d7c39eed54b01e24bc2d6 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -163,6 +163,9 @@ extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *r
 extern struct commit_list *get_merge_bases_many(struct commit *one, int n, struct commit **twos, int cleanup);
 extern struct commit_list *get_octopus_merge_bases(struct commit_list *in);
 
+/* largest postive number a signed 32-bit integer can contain */
+#define INFINITE_DEPTH 0x7fffffff
+
 extern int register_shallow(const unsigned char *sha1);
 extern int unregister_shallow(const unsigned char *sha1);
 extern int for_each_commit_graft(each_commit_graft_fn, void *);