summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-08-16 09:52:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-08-18 20:00:17 (GMT)
commit3125fe528b65c1e4a4f5f934d056af342ab5472d (patch)
tree5cae1f2f397db748cef9e2335dc20deae2c63812 /commit.h
parent2c2b6646c2723459dbd334c7ced6f77ffb0d596e (diff)
downloadgit-3125fe528b65c1e4a4f5f934d056af342ab5472d.zip
git-3125fe528b65c1e4a4f5f934d056af342ab5472d.tar.gz
git-3125fe528b65c1e4a4f5f934d056af342ab5472d.tar.bz2
move setup_alternate_shallow and write_shallow_commits to shallow.c
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index d912a9d..790e31b 100644
--- a/commit.h
+++ b/commit.h
@@ -198,6 +198,9 @@ extern struct commit_list *get_shallow_commits(struct object_array *heads,
int depth, int shallow_flag, int not_shallow_flag);
extern void check_shallow_file_for_update(void);
extern void set_alternate_shallow_file(const char *path);
+extern int write_shallow_commits(struct strbuf *out, int use_pack_protocol);
+extern void setup_alternate_shallow(struct lock_file *shallow_lock,
+ const char **alternate_shallow_file);
int is_descendant_of(struct commit *, struct commit_list *);
int in_merge_bases(struct commit *, struct commit *);