1
0
mirror of https://github.com/git/git synced 2024-07-05 00:58:49 +00:00
git/remote.h
Daniel Barkalow 5751f49010 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>
2007-05-20 21:32:56 -07:00

19 lines
238 B
C

#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