Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
shallow.c: make check_shallow_file_for_update() static
author
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Jan 2015 23:01:27 +0000
(15:01 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 15 Jan 2015 19:05:48 +0000
(11:05 -0800)
No external callers exist.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.h
patch
|
blob
|
history
shallow.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
a355b11
)
diff --git
a/commit.h
b/commit.h
index 5cc1e7ec9ee80965d1669e0f96dfeab03f3b0798..9f189cb054266cd8f8c084853afbb678ca56c9e9 100644
(file)
--- a/
commit.h
+++ b/
commit.h
@@
-254,7
+254,6
@@
extern int for_each_commit_graft(each_commit_graft_fn, void *);
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);
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);
-extern void check_shallow_file_for_update(void);
extern void set_alternate_shallow_file(const char *path, int override);
extern int write_shallow_commits(struct strbuf *out, int use_pack_protocol,
const struct sha1_array *extra);
extern void set_alternate_shallow_file(const char *path, int override);
extern int write_shallow_commits(struct strbuf *out, int use_pack_protocol,
const struct sha1_array *extra);
diff --git
a/shallow.c
b/shallow.c
index cdd07751461e69291588dee801c3563644cb1107..04ea816e0e8f2ed2829ed4ceca8d031a867e2cda 100644
(file)
--- a/
shallow.c
+++ b/
shallow.c
@@
-137,7
+137,7
@@
struct commit_list *get_shallow_commits(struct object_array *heads, int depth,
return result;
}
return result;
}
-void check_shallow_file_for_update(void)
+
static
void check_shallow_file_for_update(void)
{
if (is_shallow == -1)
die("BUG: shallow must be initialized by now");
{
if (is_shallow == -1)
die("BUG: shallow must be initialized by now");