summaryrefslogtreecommitdiff
path: root/send-pack.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2009-03-08 21:06:07 -0400
committerJunio C Hamano <gitster@pobox.com>2009-03-09 15:41:20 -0700
commit64fcef2daa03f6093b480142c6ab2a4173b0b43e (patch)
tree9651ad403bca3e26ceac23c4314e459dfe20f288 /send-pack.h
parenta9c37a72c4fbc8537de294d66b05bdfd7f9a4016 (diff)
downloadgit-64fcef2daa03f6093b480142c6ab2a4173b0b43e.tar.gz
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 'send-pack.h')
-rw-r--r--send-pack.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/send-pack.h b/send-pack.h
index 8ff1dc3539..83d76c7e35 100644
--- a/send-pack.h
+++ b/send-pack.h
@@ -2,9 +2,7 @@
#define SEND_PACK_H
struct send_pack_args {
- const char *receivepack;
unsigned verbose:1,
- send_all:1,
send_mirror:1,
force_update:1,
use_thin_pack:1,
@@ -12,7 +10,7 @@ struct send_pack_args {
};
int send_pack(struct send_pack_args *args,
- const char *dest, struct remote *remote,
- int nr_heads, const char **heads);
+ int fd[], struct child_process *conn,
+ struct ref *remote_refs, struct extra_have_objects *extra_have);
#endif