Move push matching and reporting logic into transport.c
authorDaniel Barkalow <barkalow@iabervon.org>
Mon, 9 Mar 2009 01:06:07 +0000 (21:06 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Mar 2009 22:41:20 +0000 (15:41 -0700)
commit64fcef2daa03f6093b480142c6ab2a4173b0b43e
tree9651ad403bca3e26ceac23c4314e459dfe20f288
parenta9c37a72c4fbc8537de294d66b05bdfd7f9a4016
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>
builtin-send-pack.c
send-pack.h
transport.c
transport.h