MCPcopy Create free account
hub / github.com/git/git / bundle_uri_command

Function bundle_uri_command

bundle-uri.c:955–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953}
954
955int bundle_uri_command(struct repository *r,
956 struct packet_reader *request)
957{
958 struct packet_writer writer;
959 packet_writer_init(&writer, 1);
960
961 while (packet_reader_read(request) == PACKET_READ_NORMAL)
962 die(_("bundle-uri: unexpected argument: '%s'"), request->line);
963 if (request->status != PACKET_READ_FLUSH)
964 die(_("bundle-uri: expected flush after arguments"));
965
966 /*
967 * Read all "bundle.*" config lines to the client as key=value
968 * packet lines.
969 */
970 repo_config(r, config_to_packet_line, &writer);
971
972 packet_writer_flush(&writer);
973
974 return 0;
975}
976
977/**
978 * General API for {transport,connect}.c etc.

Callers

nothing calls this directly

Calls 5

packet_writer_initFunction · 0.85
packet_reader_readFunction · 0.85
packet_writer_flushFunction · 0.85
dieFunction · 0.70
repo_configFunction · 0.70

Tested by

no test coverage detected