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

Function packet_read_line

pkt-line.c:526–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526char *packet_read_line(int fd, int *dst_len)
527{
528 int len = packet_read(fd, packet_buffer, sizeof(packet_buffer),
529 PACKET_READ_CHOMP_NEWLINE);
530 if (dst_len)
531 *dst_len = len;
532 return (len > 0) ? packet_buffer : NULL;
533}
534
535int packet_read_line_gently(int fd, int *dst_len, char **dst_line)
536{

Callers 8

read_capabilitiesFunction · 0.85
command_loopFunction · 0.85
packet_initializeFunction · 0.85
cmd_fetch_packFunction · 0.85
cmd_send_packFunction · 0.85

Calls 1

packet_readFunction · 0.85

Tested by 4

read_capabilitiesFunction · 0.68
command_loopFunction · 0.68
packet_initializeFunction · 0.68