mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
64fcef2daa
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>
16 lines
325 B
C
16 lines
325 B
C
#ifndef SEND_PACK_H
|
|
#define SEND_PACK_H
|
|
|
|
struct send_pack_args {
|
|
unsigned verbose:1,
|
|
send_mirror:1,
|
|
force_update:1,
|
|
use_thin_pack:1,
|
|
dry_run:1;
|
|
};
|
|
|
|
int send_pack(struct send_pack_args *args,
|
|
int fd[], struct child_process *conn,
|
|
struct ref *remote_refs, struct extra_have_objects *extra_have);
|
|
|
|
#endif
|