aboutsummaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2007-05-12 11:45:53 -0400
committerJunio C Hamano <junkio@cox.net>2007-05-20 21:32:56 -0700
commit5751f49010ec54164b93529e31165e71f5996856 (patch)
tree7d56b34b50d596d25cd8dd396c3155828e27d021 /remote.h
parent93d496a560cdcd4f72c8dee1b0b2efa324e1c3bb (diff)
downloadgit-5751f49010ec54164b93529e31165e71f5996856.tar.gz
git-5751f49010ec54164b93529e31165e71f5996856.tar.xz
Move remote parsing into a library file out of builtin-push.
The new parser is different from the one in builtin-push in two ways: the default is to use the current branch's remote, if there is one, before "origin"; and config is used in preference to remotes. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/remote.h b/remote.h
new file mode 100644
index 000000000..73747a805
--- /dev/null
+++ b/remote.h
@@ -0,0 +1,18 @@
+#ifndef REMOTE_H
+#define REMOTE_H
+
+struct remote {
+ const char *name;
+
+ const char **uri;
+ int uri_nr;
+
+ const char **push_refspec;
+ int push_refspec_nr;
+
+ const char *receivepack;
+};
+
+struct remote *remote_get(const char *name);
+
+#endif