transport 32 builtin/archive.c struct transport *transport; transport 38 builtin/archive.c transport = transport_get(_remote, _remote->url[0]); transport 39 builtin/archive.c transport_connect(transport, "git-upload-archive", exec, fd); transport 72 builtin/archive.c rv |= transport_disconnect(transport); transport 614 builtin/clone.c struct transport *transport, transport 620 builtin/clone.c if (transport->progress) transport 623 builtin/clone.c 0, &rm, transport)) transport 625 builtin/clone.c if (transport->progress) transport 825 builtin/clone.c struct transport *transport = NULL; transport 968 builtin/clone.c transport = transport_get(remote, remote->url[0]); transport 969 builtin/clone.c transport_set_verbosity(transport, option_verbosity, option_progress); transport 984 builtin/clone.c transport->cloning = 1; transport 986 builtin/clone.c if (!transport->get_refs_list || (!is_local && !transport->fetch)) transport 987 builtin/clone.c die(_("Don't know how to clone %s"), transport->url); transport 989 builtin/clone.c transport_set_option(transport, TRANS_OPT_KEEP, "yes"); transport 992 builtin/clone.c transport_set_option(transport, TRANS_OPT_DEPTH, transport 995 builtin/clone.c transport_set_option(transport, TRANS_OPT_FOLLOWTAGS, "1"); transport 998 builtin/clone.c transport_set_option(transport, TRANS_OPT_UPLOADPACK, transport 1001 builtin/clone.c if (transport->smart_options && !option_depth) transport 1002 builtin/clone.c transport->smart_options->check_self_contained_and_connected = 1; transport 1004 builtin/clone.c refs = transport_get_remote_refs(transport); transport 1025 builtin/clone.c transport_fetch_refs(transport, mapped_refs); transport 1064 builtin/clone.c transport_fetch_refs(transport, mapped_refs); transport 1067 builtin/clone.c branch_top.buf, reflog_msg.buf, transport, !is_local); transport 1071 builtin/clone.c transport_unlock_pack(transport); transport 1072 builtin/clone.c transport_disconnect(transport); transport 43 builtin/fetch.c static struct transport *gtransport; transport 44 builtin/fetch.c static struct transport *gsecondary; transport 206 builtin/fetch.c static void find_non_local_tags(struct transport *transport, transport 216 builtin/fetch.c for (ref = transport_get_remote_refs(transport); ref; ref = ref->next) { transport 285 builtin/fetch.c static struct ref *get_ref_map(struct transport *transport, transport 297 builtin/fetch.c const struct ref *remote_refs = transport_get_remote_refs(transport); transport 336 builtin/fetch.c fetch_refspec = transport->remote->fetch; transport 337 builtin/fetch.c fetch_refspec_nr = transport->remote->fetch_refspec_nr; transport 349 builtin/fetch.c struct remote *remote = transport->remote; transport 388 builtin/fetch.c find_non_local_tags(transport, &ref_map, &tail); transport 758 builtin/fetch.c static int fetch_refs(struct transport *transport, struct ref *ref_map) transport 762 builtin/fetch.c ret = transport_fetch_refs(transport, ref_map); transport 764 builtin/fetch.c ret |= store_updated_refs(transport->url, transport 765 builtin/fetch.c transport->remote->name, transport 767 builtin/fetch.c transport_unlock_pack(transport); transport 847 builtin/fetch.c static void set_option(struct transport *transport, const char *name, const char *value) transport 849 builtin/fetch.c int r = transport_set_option(transport, name, value); transport 852 builtin/fetch.c name, value, transport->url); transport 855 builtin/fetch.c name, transport->url); transport 858 builtin/fetch.c static struct transport *prepare_transport(struct remote *remote) transport 860 builtin/fetch.c struct transport *transport; transport 861 builtin/fetch.c transport = transport_get(remote, NULL); transport 862 builtin/fetch.c transport_set_verbosity(transport, verbosity, progress); transport 864 builtin/fetch.c set_option(transport, TRANS_OPT_UPLOADPACK, upload_pack); transport 866 builtin/fetch.c set_option(transport, TRANS_OPT_KEEP, "yes"); transport 868 builtin/fetch.c set_option(transport, TRANS_OPT_DEPTH, depth); transport 870 builtin/fetch.c set_option(transport, TRANS_OPT_UPDATE_SHALLOW, "yes"); transport 871 builtin/fetch.c return transport; transport 874 builtin/fetch.c static void backfill_tags(struct transport *transport, struct ref *ref_map) transport 876 builtin/fetch.c if (transport->cannot_reuse) { transport 877 builtin/fetch.c gsecondary = prepare_transport(transport->remote); transport 878 builtin/fetch.c transport = gsecondary; transport 881 builtin/fetch.c transport_set_option(transport, TRANS_OPT_FOLLOWTAGS, NULL); transport 882 builtin/fetch.c transport_set_option(transport, TRANS_OPT_DEPTH, "0"); transport 883 builtin/fetch.c fetch_refs(transport, ref_map); transport 891 builtin/fetch.c static int do_fetch(struct transport *transport, transport 897 builtin/fetch.c int autotags = (transport->remote->fetch_tags == 1); transport 903 builtin/fetch.c if (transport->remote->fetch_tags == 2) transport 905 builtin/fetch.c if (transport->remote->fetch_tags == -1) transport 909 builtin/fetch.c if (!transport->get_refs_list || !transport->fetch) transport 910 builtin/fetch.c die(_("Don't know how to fetch from %s"), transport->url); transport 919 builtin/fetch.c ref_map = get_ref_map(transport, refs, ref_count, tags, &autotags); transport 936 builtin/fetch.c transport_set_option(transport, TRANS_OPT_FOLLOWTAGS, "1"); transport 944 builtin/fetch.c prune_refs(refs, ref_count, ref_map, transport->url); transport 946 builtin/fetch.c prune_refs(transport->remote->fetch, transport 947 builtin/fetch.c transport->remote->fetch_refspec_nr, transport 949 builtin/fetch.c transport->url); transport 952 builtin/fetch.c if (fetch_refs(transport, ref_map)) { transport 964 builtin/fetch.c find_non_local_tags(transport, &ref_map, &tail); transport 966 builtin/fetch.c backfill_tags(transport, ref_map); transport 43 builtin/ls-remote.c struct transport *transport; transport 117 builtin/ls-remote.c transport = transport_get(remote, NULL); transport 119 builtin/ls-remote.c transport_set_option(transport, TRANS_OPT_UPLOADPACK, uploadpack); transport 121 builtin/ls-remote.c ref = transport_get_remote_refs(transport); transport 122 builtin/ls-remote.c if (transport_disconnect(transport)) transport 341 builtin/push.c static int push_with_options(struct transport *transport, int flags) transport 346 builtin/push.c transport_set_verbosity(transport, verbosity, progress); transport 349 builtin/push.c transport_set_option(transport, transport 351 builtin/push.c transport_set_option(transport, TRANS_OPT_THIN, thin ? "yes" : NULL); transport 354 builtin/push.c if (!transport->smart_options) transport 357 builtin/push.c transport->smart_options->cas = &cas; transport 361 builtin/push.c fprintf(stderr, _("Pushing to %s\n"), transport->url); transport 362 builtin/push.c err = transport_push(transport, refspec_nr, refspec, flags, transport 365 builtin/push.c error(_("failed to push some refs to '%s'"), transport->url); transport 367 builtin/push.c err |= transport_disconnect(transport); transport 437 builtin/push.c struct transport *transport = transport 439 builtin/push.c if (push_with_options(transport, flags)) transport 443 builtin/push.c struct transport *transport = transport 446 builtin/push.c if (push_with_options(transport, flags)) transport 864 builtin/remote.c struct transport *transport; transport 874 builtin/remote.c transport = transport_get(states->remote, states->remote->url_nr > 0 ? transport 876 builtin/remote.c remote_refs = transport_get_remote_refs(transport); transport 877 builtin/remote.c transport_disconnect(transport); transport 25 connected.c struct transport *transport, transport 39 connected.c if (transport && transport->smart_options && transport 40 connected.c transport->smart_options->self_contained_and_connected && transport 41 connected.c transport->pack_lockfile && transport 42 connected.c strip_suffix(transport->pack_lockfile, ".keep", &base_len)) { transport 44 connected.c strbuf_add(&idx_file, transport->pack_lockfile, base_len); transport 108 connected.c struct transport *transport) transport 111 connected.c transport, NULL); transport 4 connected.h struct transport; transport 25 connected.h struct transport *transport); transport 91 transport-helper.c static void do_take_over(struct transport *transport) transport 94 transport-helper.c data = (struct helper_data *)transport->data; transport 95 transport-helper.c transport_take_over(transport, data->helper); transport 100 transport-helper.c static void standard_options(struct transport *t); transport 102 transport-helper.c static struct child_process *get_helper(struct transport *transport) transport 104 transport-helper.c struct helper_data *data = transport->data; transport 122 transport-helper.c argv_array_push(&helper->args, transport->remote->name); transport 123 transport-helper.c argv_array_push(&helper->args, remove_ext_force(transport->url)); transport 216 transport-helper.c standard_options(transport); transport 220 transport-helper.c static int disconnect_helper(struct transport *transport) transport 222 transport-helper.c struct helper_data *data = transport->data; transport 262 transport-helper.c static int set_helper_option(struct transport *transport, transport 265 transport-helper.c struct helper_data *data = transport->data; transport 269 transport-helper.c get_helper(transport); transport 311 transport-helper.c static void standard_options(struct transport *t) transport 325 transport-helper.c static int release_helper(struct transport *transport) transport 328 transport-helper.c struct helper_data *data = transport->data; transport 331 transport-helper.c res = disconnect_helper(transport); transport 332 transport-helper.c free(transport->data); transport 336 transport-helper.c static int fetch_with_fetch(struct transport *transport, transport 339 transport-helper.c struct helper_data *data = transport->data; transport 362 transport-helper.c if (transport->pack_lockfile) transport 365 transport-helper.c transport->pack_lockfile = xstrdup(name); transport 380 transport-helper.c static int get_importer(struct transport *transport, struct child_process *fastimport) transport 382 transport-helper.c struct child_process *helper = get_helper(transport); transport 383 transport-helper.c struct helper_data *data = transport->data; transport 400 transport-helper.c static int get_exporter(struct transport *transport, transport 404 transport-helper.c struct helper_data *data = transport->data; transport 405 transport-helper.c struct child_process *helper = get_helper(transport); transport 429 transport-helper.c static int fetch_with_import(struct transport *transport, transport 433 transport-helper.c struct helper_data *data = transport->data; transport 438 transport-helper.c get_helper(transport); transport 440 transport-helper.c if (get_importer(transport, &fastimport)) transport 501 transport-helper.c static int process_connect_service(struct transport *transport, transport 504 transport-helper.c struct helper_data *data = transport->data; transport 510 transport-helper.c helper = get_helper(transport); transport 529 transport-helper.c r = set_helper_option(transport, "servpath", exec); transport 564 transport-helper.c static int process_connect(struct transport *transport, transport 567 transport-helper.c struct helper_data *data = transport->data; transport 577 transport-helper.c return process_connect_service(transport, name, exec); transport 580 transport-helper.c static int connect_helper(struct transport *transport, const char *name, transport 583 transport-helper.c struct helper_data *data = transport->data; transport 586 transport-helper.c get_helper(transport); transport 590 transport-helper.c if (!process_connect_service(transport, name, exec)) transport 598 transport-helper.c static int fetch(struct transport *transport, transport 601 transport-helper.c struct helper_data *data = transport->data; transport 604 transport-helper.c if (process_connect(transport, 0)) { transport 605 transport-helper.c do_take_over(transport); transport 606 transport-helper.c return transport->fetch(transport, nr_heads, to_fetch); transport 619 transport-helper.c set_helper_option(transport, "check-connectivity", "true"); transport 621 transport-helper.c if (transport->cloning) transport 622 transport-helper.c set_helper_option(transport, "cloning", "true"); transport 625 transport-helper.c set_helper_option(transport, "update-shallow", "true"); transport 628 transport-helper.c return fetch_with_fetch(transport, nr_heads, to_fetch); transport 631 transport-helper.c return fetch_with_import(transport, nr_heads, to_fetch); transport 766 transport-helper.c static void set_common_push_options(struct transport *transport, transport 770 transport-helper.c if (set_helper_option(transport, "dry-run", "true") != 0) transport 773 transport-helper.c if (set_helper_option(transport, TRANS_OPT_PUSH_CERT, "true") != 0) transport 776 transport-helper.c if (set_helper_option(transport, TRANS_OPT_PUSH_CERT, "if-asked") != 0) transport 781 transport-helper.c static int push_refs_with_push(struct transport *transport, transport 786 transport-helper.c struct helper_data *data = transport->data; transport 792 transport-helper.c get_helper(transport); transport 847 transport-helper.c set_helper_option(transport, "cas", cas_option->string); transport 848 transport-helper.c set_common_push_options(transport, data->name, flags); transport 857 transport-helper.c static int push_refs_with_export(struct transport *transport, transport 862 transport-helper.c struct helper_data *data = transport->data; transport 869 transport-helper.c set_common_push_options(transport, data->name, flags); transport 871 transport-helper.c if (set_helper_option(transport, "force", "true") != 0) transport 875 transport-helper.c helper = get_helper(transport); transport 918 transport-helper.c if (get_exporter(transport, &exporter, &revlist_args)) transport 937 transport-helper.c static int push_refs(struct transport *transport, transport 940 transport-helper.c struct helper_data *data = transport->data; transport 942 transport-helper.c if (process_connect(transport, 1)) { transport 943 transport-helper.c do_take_over(transport); transport 944 transport-helper.c return transport->push_refs(transport, remote_refs, flags); transport 954 transport-helper.c return push_refs_with_push(transport, remote_refs, flags); transport 957 transport-helper.c return push_refs_with_export(transport, remote_refs, flags); transport 979 transport-helper.c static struct ref *get_refs_list(struct transport *transport, int for_push) transport 981 transport-helper.c struct helper_data *data = transport->data; transport 988 transport-helper.c helper = get_helper(transport); transport 990 transport-helper.c if (process_connect(transport, for_push)) { transport 991 transport-helper.c do_take_over(transport); transport 992 transport-helper.c return transport->get_refs_list(transport, for_push); transport 1041 transport-helper.c int transport_helper_init(struct transport *transport, const char *name) transport 1051 transport-helper.c transport->data = data; transport 1052 transport-helper.c transport->set_option = set_helper_option; transport 1053 transport-helper.c transport->get_refs_list = get_refs_list; transport 1054 transport-helper.c transport->fetch = fetch; transport 1055 transport-helper.c transport->push_refs = push_refs; transport 1056 transport-helper.c transport->disconnect = release_helper; transport 1057 transport-helper.c transport->connect = connect_helper; transport 1058 transport-helper.c transport->smart_options = &(data->transport_options); transport 146 transport.c static void set_upstreams(struct transport *transport, struct ref *refs, transport 185 transport.c localname + 11, transport->remote->name, transport 190 transport.c transport->remote->name); transport 201 transport.c static struct ref *get_refs_via_rsync(struct transport *transport, int for_push) transport 219 transport.c strbuf_addstr(&buf, rsync_url(transport->url)); transport 225 transport.c args[1] = (transport->verbose > 1) ? "-rv" : "-r"; transport 234 transport.c strbuf_addstr(&buf, rsync_url(transport->url)); transport 263 transport.c static int fetch_objs_via_rsync(struct transport *transport, transport 270 transport.c argv_array_push(&rsync.args, (transport->verbose > 1) ? "-rv" : "-r"); transport 274 transport.c argv_array_pushf(&rsync.args, "%s/objects/", rsync_url(transport->url)); transport 322 transport.c static int rsync_transport_push(struct transport *transport, transport 335 transport.c strbuf_addstr(&buf, rsync_url(transport->url)); transport 345 transport.c if (transport->verbose > 1) transport 356 transport.c rsync_url(transport->url)); transport 377 transport.c args[i++] = rsync_url(transport->url); transport 381 transport.c rsync_url(transport->url)); transport 398 transport.c static struct ref *get_refs_from_bundle(struct transport *transport, int for_push) transport 400 transport.c struct bundle_transport_data *data = transport->data; transport 409 transport.c data->fd = read_bundle_header(transport->url, &data->header); transport 411 transport.c die ("Could not read bundle '%s'.", transport->url); transport 422 transport.c static int fetch_refs_from_bundle(struct transport *transport, transport 425 transport.c struct bundle_transport_data *data = transport->data; transport 427 transport.c transport->progress ? BUNDLE_VERBOSE : 0); transport 430 transport.c static int close_bundle(struct transport *transport) transport 432 transport.c struct bundle_transport_data *data = transport->data; transport 483 transport.c static int connect_setup(struct transport *transport, int for_push, int verbose) transport 485 transport.c struct git_transport_data *data = transport->data; transport 490 transport.c data->conn = git_connect(data->fd, transport->url, transport 498 transport.c static struct ref *get_refs_via_connect(struct transport *transport, int for_push) transport 500 transport.c struct git_transport_data *data = transport->data; transport 503 transport.c connect_setup(transport, for_push, 0); transport 513 transport.c static int fetch_refs_via_pack(struct transport *transport, transport 516 transport.c struct git_transport_data *data = transport->data; transport 518 transport.c char *dest = xstrdup(transport->url); transport 528 transport.c args.verbose = (transport->verbose > 1); transport 529 transport.c args.quiet = (transport->verbose < 0); transport 530 transport.c args.no_progress = !transport->progress; transport 534 transport.c args.cloning = transport->cloning; transport 538 transport.c connect_setup(transport, 0, 0); transport 545 transport.c refs_tmp ? refs_tmp : transport->remote_refs, transport 547 transport.c &transport->pack_lockfile); transport 805 transport.c static int git_transport_push(struct transport *transport, struct ref *remote_refs, int flags) transport 807 transport.c struct git_transport_data *data = transport->data; transport 813 transport.c connect_setup(transport, 1, 0); transport 824 transport.c args.verbose = (transport->verbose > 0); transport 825 transport.c args.quiet = (transport->verbose < 0); transport 826 transport.c args.progress = transport->progress; transport 830 transport.c args.url = transport->url; transport 851 transport.c static int connect_git(struct transport *transport, const char *name, transport 854 transport.c struct git_transport_data *data = transport->data; transport 855 transport.c data->conn = git_connect(data->fd, transport->url, transport 862 transport.c static int disconnect_git(struct transport *transport) transport 864 transport.c struct git_transport_data *data = transport->data; transport 877 transport.c void transport_take_over(struct transport *transport, transport 882 transport.c if (!transport->smart_options) transport 887 transport.c data->options = *transport->smart_options; transport 892 transport.c transport->data = data; transport 894 transport.c transport->set_option = NULL; transport 895 transport.c transport->get_refs_list = get_refs_via_connect; transport 896 transport.c transport->fetch = fetch_refs_via_pack; transport 897 transport.c transport->push = NULL; transport 898 transport.c transport->push_refs = git_transport_push; transport 899 transport.c transport->disconnect = disconnect_git; transport 900 transport.c transport->smart_options = &(data->options); transport 902 transport.c transport->cannot_reuse = 1; transport 954 transport.c struct transport *transport_get(struct remote *remote, const char *url) transport 957 transport.c struct transport *ret = xcalloc(1, sizeof(*ret)); transport 1040 transport.c int transport_set_option(struct transport *transport, transport 1045 transport.c if (transport->smart_options) transport 1046 transport.c git_reports = set_git_option(transport->smart_options, transport 1049 transport.c if (transport->set_option) transport 1050 transport.c protocol_reports = transport->set_option(transport, name, transport 1063 transport.c void transport_set_verbosity(struct transport *transport, int verbosity, transport 1067 transport.c transport->verbose = verbosity <= 3 ? verbosity : 3; transport 1069 transport.c transport->verbose = -1; transport 1081 transport.c transport->progress = !!force_progress; transport 1083 transport.c transport->progress = verbosity >= 0 && isatty(2); transport 1105 transport.c static int run_pre_push_hook(struct transport *transport, transport 1117 transport.c argv[1] = transport->remote->name; transport 1118 transport.c argv[2] = transport->url; transport 1161 transport.c int transport_push(struct transport *transport, transport 1168 transport.c if (transport->push) { transport 1173 transport.c return transport->push(transport, refspec_nr, refspec, flags); transport 1174 transport.c } else if (transport->push_refs) { transport 1178 transport.c int verbose = (transport->verbose > 0); transport 1179 transport.c int quiet = (transport->verbose < 0); transport 1187 transport.c remote_refs = transport->get_refs_list(transport, 1); transport 1203 transport.c if (transport->smart_options && transport 1204 transport.c transport->smart_options->cas && transport 1205 transport.c !is_empty_cas(transport->smart_options->cas)) transport 1206 transport.c apply_push_cas(transport->smart_options->cas, transport 1207 transport.c transport->remote, remote_refs); transport 1214 transport.c if (run_pre_push_hook(transport, remote_refs)) transport 1222 transport.c transport->remote->name)) transport 1234 transport.c transport->remote->name, &needs_pushing)) transport 1238 transport.c push_ret = transport->push_refs(transport, remote_refs, flags); transport 1243 transport.c transport_print_push_status(transport->url, remote_refs, transport 1248 transport.c set_upstreams(transport, remote_refs, pretend); transport 1253 transport.c transport_update_tracking_ref(transport->remote, ref, verbose); transport 1266 transport.c const struct ref *transport_get_remote_refs(struct transport *transport) transport 1268 transport.c if (!transport->got_remote_refs) { transport 1269 transport.c transport->remote_refs = transport->get_refs_list(transport, 0); transport 1270 transport.c transport->got_remote_refs = 1; transport 1273 transport.c return transport->remote_refs; transport 1276 transport.c int transport_fetch_refs(struct transport *transport, struct ref *refs) transport 1306 transport.c rc = transport->fetch(transport, nr_heads, heads); transport 1312 transport.c void transport_unlock_pack(struct transport *transport) transport 1314 transport.c if (transport->pack_lockfile) { transport 1315 transport.c unlink_or_warn(transport->pack_lockfile); transport 1316 transport.c free(transport->pack_lockfile); transport 1317 transport.c transport->pack_lockfile = NULL; transport 1321 transport.c int transport_connect(struct transport *transport, const char *name, transport 1324 transport.c if (transport->connect) transport 1325 transport.c return transport->connect(transport, name, exec, fd); transport 1330 transport.c int transport_disconnect(struct transport *transport) transport 1333 transport.c if (transport->disconnect) transport 1334 transport.c ret = transport->disconnect(transport); transport 1335 transport.c free(transport); transport 1398 transport.c struct transport *transport; transport 1417 transport.c transport = transport_get(remote, other); transport 1418 transport.c for (extra = transport_get_remote_refs(transport); transport 1422 transport.c transport_disconnect(transport); transport 50 transport.h int (*set_option)(struct transport *connection, const char *name, transport 62 transport.h struct ref *(*get_refs_list)(struct transport *transport, int for_push); transport 72 transport.h int (*fetch)(struct transport *transport, int refs_nr, struct ref **refs); transport 88 transport.h int (*push_refs)(struct transport *transport, struct ref *refs, int flags); transport 89 transport.h int (*push)(struct transport *connection, int refspec_nr, const char **refspec, int flags); transport 90 transport.h int (*connect)(struct transport *connection, const char *name, transport 97 transport.h int (*disconnect)(struct transport *connection); transport 134 transport.h struct transport *transport_get(struct remote *, const char *); transport 187 transport.h int transport_set_option(struct transport *transport, const char *name, transport 189 transport.h void transport_set_verbosity(struct transport *transport, int verbosity, transport 198 transport.h int transport_push(struct transport *connection, transport 202 transport.h const struct ref *transport_get_remote_refs(struct transport *transport); transport 204 transport.h int transport_fetch_refs(struct transport *transport, struct ref *refs); transport 205 transport.h void transport_unlock_pack(struct transport *transport); transport 206 transport.h int transport_disconnect(struct transport *transport); transport 208 transport.h void transport_take_over(struct transport *transport, transport 211 transport.h int transport_connect(struct transport *transport, const char *name, transport 215 transport.h int transport_helper_init(struct transport *transport, const char *name);