diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-02-01 12:39:24 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-01 12:39:24 -0800 |
commit | 2532d891a4aab003a5ce19f04509fd8549754485 (patch) | |
tree | dd423e056e45994a8af8ee7c9e174209ece868f2 /commit.h | |
parent | 9a6c84e6e9078b0ef4fd2c50b200e8552a28c6fa (diff) | |
parent | cfb70e1fa506e79f337e716ed4813c6caa428644 (diff) | |
download | git-2532d891a4aab003a5ce19f04509fd8549754485.tar.gz |
Merge branch 'nd/fetch-depth-is-broken'
"git fetch --depth" was broken in at least three ways. The
resulting history was deeper than specified by one commit, it was
unclear how to wipe the shallowness of the repository with the
command, and documentation was misleading.
* nd/fetch-depth-is-broken:
fetch: elaborate --depth action
upload-pack: fix off-by-one depth calculation in shallow clone
fetch: add --unshallow for turning shallow repo into complete one
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 *); |