@matheusbsbs / matheus-bagliano / commits / 2d93b9face
Fork 0

More missing static

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jun 8, 2007 at 02:24 UTC 2d93b9facef75d1880a2979366d36bc1832e8c1d
2 files changed +8 -11
revision.c
+8 -8
@@ -114,12 +114,7 @@ void mark_parents_uninteresting(struct commit *commit)
114 }
115 }
116
117 -void add_pending_object(struct rev_info *revs, struct object *obj, const char *name)
118 -{
119 - add_pending_object_with_mode(revs, obj, name, S_IFINVALID);
120 -}
121 -
122 -void add_pending_object_with_mode(struct rev_info *revs, struct object *obj, const char *name, unsigned mode)
117 +static void add_pending_object_with_mode(struct rev_info *revs, struct object *obj, const char *name, unsigned mode)
118 {
119 if (revs->no_walk && (obj->flags & UNINTERESTING))
120 die("object ranges do not make sense when not walking revisions");
@@ -129,6 +124,11 @@ void add_pending_object_with_mode(struct rev_info *revs, struct object *obj, con
124 (struct commit *)obj, name);
125 }
126
127 +void add_pending_object(struct rev_info *revs, struct object *obj, const char *name)
128 +{
129 + add_pending_object_with_mode(revs, obj, name, S_IFINVALID);
130 +}
131 +
132 static struct object *get_reference(struct rev_info *revs, const char *name, const unsigned char *sha1, unsigned int flags)
133 {
134 struct object *object;
@@ -262,7 +262,7 @@ static void file_change(struct diff_options *options,
262 options->has_changes = 1;
263 }
264
265 -int rev_compare_tree(struct rev_info *revs, struct tree *t1, struct tree *t2)
265 +static int rev_compare_tree(struct rev_info *revs, struct tree *t1, struct tree *t2)
266 {
267 if (!t1)
268 return REV_TREE_NEW;
@@ -276,7 +276,7 @@ int rev_compare_tree(struct rev_info *revs, struct tree *t1, struct tree *t2)
276 return tree_difference;
277 }
278
279 -int rev_same_tree_as_empty(struct rev_info *revs, struct tree *t1)
279 +static int rev_same_tree_as_empty(struct rev_info *revs, struct tree *t1)
280 {
281 int retval;
282 void *tree;
revision.h
-3
@@ -106,8 +106,6 @@ struct rev_info {
106 #define REV_TREE_DIFFERENT 2
107
108 /* revision.c */
109 -extern int rev_same_tree_as_empty(struct rev_info *, struct tree *t1);
110 -extern int rev_compare_tree(struct rev_info *, struct tree *t1, struct tree *t2);
109
110 extern void init_revisions(struct rev_info *revs, const char *prefix);
111 extern int setup_revisions(int argc, const char **argv, struct rev_info *revs, const char *def);
@@ -131,6 +129,5 @@ extern void add_object(struct object *obj,
129 const char *name);
130
131 extern void add_pending_object(struct rev_info *revs, struct object *obj, const char *name);
134 -extern void add_pending_object_with_mode(struct rev_info *revs, struct object *obj, const char *name, unsigned mode);
132
133 #endif