path: root/transport.h
diff options
authorJunio C Hamano <>2007-11-14 11:09:52 (GMT)
committerJunio C Hamano <>2007-11-14 11:09:52 (GMT)
commita108e5386122c75a350e9a191fc727895941ddff (patch)
treed38eb81935464b397d87266203a3779a09cae7db /transport.h
parent481424e1f100de690849a9f0348fc78f45ab815e (diff)
parent7c2c6ee7e0259d591acb3d9841cf5417e6b7a8eb (diff)
Merge branch 'db/remote-builtin' into jk/send-pack
* db/remote-builtin: Reteach builtin-ls-remote to understand remotes Build in ls-remote Use built-in send-pack. Build-in send-pack, with an API for other programs to call. Build-in peek-remote, using transport infrastructure. Miscellaneous const changes and utilities Conflicts: transport.c
Diffstat (limited to 'transport.h')
1 files changed, 3 insertions, 3 deletions
diff --git a/transport.h b/transport.h
index 2f80ab4..a2a36d0 100644
--- a/transport.h
+++ b/transport.h
@@ -8,7 +8,7 @@ struct transport {
struct remote *remote;
const char *url;
void *data;
- struct ref *remote_refs;
+ const struct ref *remote_refs;
* Returns 0 if successful, positive if the option is not
@@ -18,7 +18,7 @@ struct transport {
int (*set_option)(struct transport *connection, const char *name,
const char *value);
- struct ref *(*get_refs_list)(const struct transport *transport);
+ struct ref *(*get_refs_list)(struct transport *transport);
int (*fetch)(struct transport *transport, int refs_nr, struct ref **refs);
int (*push)(struct transport *connection, int refspec_nr, const char **refspec, int flags);
@@ -62,7 +62,7 @@ int transport_set_option(struct transport *transport, const char *name,
int transport_push(struct transport *connection,
int refspec_nr, const char **refspec, int flags);
-struct ref *transport_get_remote_refs(struct transport *transport);
+const struct ref *transport_get_remote_refs(struct transport *transport);
int transport_fetch_refs(struct transport *transport, struct ref *refs);
void transport_unlock_pack(struct transport *transport);