summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-11-10 21:43:00 +0100
committerJunio C Hamano <gitster@pobox.com>2008-11-11 14:19:29 -0800
commit89cf4c7004ec329c3171448a154d050c8f75874e (patch)
tree47290d1ea4edf2091b76c7c3d1a36e9fe6abf60b /remote.h
parentbf98421a3363696f3b4c8aedc242bfaadc1ce6f6 (diff)
downloadgit-89cf4c7004ec329c3171448a154d050c8f75874e.tar.gz
remote: add a new 'origin' variable to the struct
This allows one to track where was the remote's original source, so that it's possible to decide if it makes sense to migrate it to the config format or not. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index d2e170ce66..a46a5be131 100644
--- a/remote.h
+++ b/remote.h
@@ -1,8 +1,15 @@
#ifndef REMOTE_H
#define REMOTE_H
+enum {
+ REMOTE_CONFIG,
+ REMOTE_REMOTES,
+ REMOTE_BRANCHES
+};
+
struct remote {
const char *name;
+ int origin;
const char **url;
int url_nr;