MCPcopy Index your code
hub / github.com/git/git / send_client_data

Function send_client_data

upload-pack.c:182–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182static void send_client_data(int fd, const char *data, ssize_t sz,
183 int use_sideband)
184{
185 if (use_sideband) {
186 send_sideband(1, fd, data, sz, use_sideband);
187 return;
188 }
189 if (fd == 3)
190 /* emergency quit */
191 fd = 2;
192 if (fd == 2) {
193 /* XXX: are we happy to lose stuff here? */
194 xwrite(fd, data, sz);
195 return;
196 }
197 write_or_die(fd, data, sz);
198}
199
200static int write_one_shallow(const struct commit_graft *graft, void *cb_data)
201{

Callers 2

relay_pack_dataFunction · 0.85
create_pack_fileFunction · 0.85

Calls 3

send_sidebandFunction · 0.85
xwriteFunction · 0.85
write_or_dieFunction · 0.85

Tested by

no test coverage detected