summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec587fd)
raw | patch | inline | side by side (parent: ec587fd)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 22 Jan 2007 06:22:23 +0000 (22:22 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 22 Jan 2007 06:22:23 +0000 (22:22 -0800) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
commit.h | patch | blob | history | |
shallow.c | patch | blob | history |
diff --git a/commit.h b/commit.h
index 936f8fce301672b5b78352a217403cc319ab3f07..491b0c4aac8f9690dc836a88ceda8e642c97be70 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -110,7 +110,7 @@ extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *r
extern int register_shallow(const unsigned char *sha1);
extern int unregister_shallow(const unsigned char *sha1);
extern int write_shallow_commits(int fd, int use_pack_protocol);
-extern int is_repository_shallow();
+extern int is_repository_shallow(void);
extern struct commit_list *get_shallow_commits(struct object_array *heads,
int depth, int shallow_flag, int not_shallow_flag);
diff --git a/shallow.c b/shallow.c
index 3d53d17423a73a1e206ee631c33ec7a88c40707a..d17868929ceadbd2565549a60cb738a95c90a4bb 100644 (file)
--- a/shallow.c
+++ b/shallow.c
return register_commit_graft(graft, 0);
}
-int is_repository_shallow()
+int is_repository_shallow(void)
{
FILE *fp;
char buf[1024];