summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2009-03-09 01:06:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-09 22:41:20 (GMT)
commit64fcef2daa03f6093b480142c6ab2a4173b0b43e (patch)
tree9651ad403bca3e26ceac23c4314e459dfe20f288 /transport.h
parenta9c37a72c4fbc8537de294d66b05bdfd7f9a4016 (diff)
downloadgit-64fcef2daa03f6093b480142c6ab2a4173b0b43e.zip
git-64fcef2daa03f6093b480142c6ab2a4173b0b43e.tar.gz
git-64fcef2daa03f6093b480142c6ab2a4173b0b43e.tar.bz2
Move push matching and reporting logic into transport.c
For native-protocol pushes (and other protocols as they are converted to the new method), this moves the refspec match, tracking update, and report message out of send-pack() and into transport_push(), where it can be shared completely with other protocols. This also makes fetch and push more similar in terms of what code is in what file. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.h')
-rw-r--r--transport.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/transport.h b/transport.h
index 6bbc1a8..b1c2252 100644
--- a/transport.h
+++ b/transport.h
@@ -18,8 +18,9 @@ struct transport {
int (*set_option)(struct transport *connection, const char *name,
const char *value);
- struct ref *(*get_refs_list)(struct transport *transport);
+ struct ref *(*get_refs_list)(struct transport *transport, int for_push);
int (*fetch)(struct transport *transport, int refs_nr, const struct ref **refs);
+ int (*push_refs)(struct transport *transport, struct ref *refs, int flags);
int (*push)(struct transport *connection, int refspec_nr, const char **refspec, int flags);
int (*disconnect)(struct transport *connection);