Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
More missing static
author
Junio C Hamano
<gitster@pobox.com>
Fri, 8 Jun 2007 09:24:58 +0000
(
02:24
-0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 8 Jun 2007 09:37:19 +0000
(
02:37
-0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c
patch
|
blob
|
history
revision.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
52fae7d
)
diff --git
a/revision.c
b/revision.c
index 0a29b53673e0e44547dfe91aaede5f312530a0ec..b12c25e2b0c8e2c1d3bb097739f3c132a296c964 100644
(file)
--- a/
revision.c
+++ b/
revision.c
@@
-114,12
+114,7
@@
void mark_parents_uninteresting(struct commit *commit)
}
}
}
}
-void add_pending_object(struct rev_info *revs, struct object *obj, const char *name)
-{
- add_pending_object_with_mode(revs, obj, name, S_IFINVALID);
-}
-
-void add_pending_object_with_mode(struct rev_info *revs, struct object *obj, const char *name, unsigned mode)
+static void add_pending_object_with_mode(struct rev_info *revs, struct object *obj, const char *name, unsigned mode)
{
if (revs->no_walk && (obj->flags & UNINTERESTING))
die("object ranges do not make sense when not walking revisions");
{
if (revs->no_walk && (obj->flags & UNINTERESTING))
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
(struct commit *)obj, name);
}
(struct commit *)obj, name);
}
+void add_pending_object(struct rev_info *revs, struct object *obj, const char *name)
+{
+ add_pending_object_with_mode(revs, obj, name, S_IFINVALID);
+}
+
static struct object *get_reference(struct rev_info *revs, const char *name, const unsigned char *sha1, unsigned int flags)
{
struct object *object;
static struct object *get_reference(struct rev_info *revs, const char *name, const unsigned char *sha1, unsigned int flags)
{
struct object *object;
@@
-262,7
+262,7
@@
static void file_change(struct diff_options *options,
options->has_changes = 1;
}
options->has_changes = 1;
}
-int rev_compare_tree(struct rev_info *revs, struct tree *t1, struct tree *t2)
+
static
int rev_compare_tree(struct rev_info *revs, struct tree *t1, struct tree *t2)
{
if (!t1)
return REV_TREE_NEW;
{
if (!t1)
return REV_TREE_NEW;
@@
-276,7
+276,7
@@
int rev_compare_tree(struct rev_info *revs, struct tree *t1, struct tree *t2)
return tree_difference;
}
return tree_difference;
}
-int rev_same_tree_as_empty(struct rev_info *revs, struct tree *t1)
+
static
int rev_same_tree_as_empty(struct rev_info *revs, struct tree *t1)
{
int retval;
void *tree;
{
int retval;
void *tree;
diff --git
a/revision.h
b/revision.h
index 2845167746ce4632894fce88e840df60513933aa..f46b4d55a2c75e201b37dda8edd6d353722a96cb 100644
(file)
--- a/
revision.h
+++ b/
revision.h
@@
-106,8
+106,6
@@
struct rev_info {
#define REV_TREE_DIFFERENT 2
/* revision.c */
#define REV_TREE_DIFFERENT 2
/* revision.c */
-extern int rev_same_tree_as_empty(struct rev_info *, struct tree *t1);
-extern int rev_compare_tree(struct rev_info *, struct tree *t1, struct tree *t2);
extern void init_revisions(struct rev_info *revs, const char *prefix);
extern int setup_revisions(int argc, const char **argv, struct rev_info *revs, const char *def);
extern void init_revisions(struct rev_info *revs, const char *prefix);
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,
const char *name);
extern void add_pending_object(struct rev_info *revs, struct object *obj, const char *name);
const char *name);
extern void add_pending_object(struct rev_info *revs, struct object *obj, const char *name);
-extern void add_pending_object_with_mode(struct rev_info *revs, struct object *obj, const char *name, unsigned mode);
#endif
#endif