summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3b9b116)
raw | patch | inline | side by side (parent: 3b9b116)
author | Nanako Shiraishi <nanako3@lavabit.com> | |
Thu, 25 Sep 2008 09:41:00 +0000 (18:41 +0900) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 25 Sep 2008 15:00:28 +0000 (08:00 -0700) |
These functions are not used by any other file.
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
remote.c | patch | blob | history | |
remote.h | patch | blob | history |
diff --git a/remote.c b/remote.c
index 3f3c789653a23e829369429da093c1193b53b015..c45d96e98fffe3411284144b6d836cf499d42ba4 100644 (file)
--- a/remote.c
+++ b/remote.c
* and dst pointers are always freeable pointers as well
* as the refspec pointer itself.
*/
-void free_refspecs(struct refspec *refspec, int nr_refspec)
+static void free_refspecs(struct refspec *refspec, int nr_refspec)
{
int i;
return parse_refspec_internal(nr_refspec, refspec, 1, 0);
}
-struct refspec *parse_push_refspec(int nr_refspec, const char **refspec)
+static struct refspec *parse_push_refspec(int nr_refspec, const char **refspec)
{
return parse_refspec_internal(nr_refspec, refspec, 0, 0);
}
return ret;
}
-void free_ref(struct ref *ref)
+static void free_ref(struct ref *ref)
{
if (!ref)
return;
diff --git a/remote.h b/remote.h
index 2601f6e76d52c6a201e3952fb8b2c988eed33700..c6163ff5b1f7e7c96bedaa9a6b561a9f4a8ed7c2 100644 (file)
--- a/remote.h
+++ b/remote.h
int valid_fetch_refspec(const char *refspec);
struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec);
-struct refspec *parse_push_refspec(int nr_refspec, const char **refspec);
-void free_refspecs(struct refspec *refspec, int nr_refspec);
int match_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail,
int nr_refspec, const char **refspec, int all);