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

Function packet_reader_peek

pkt-line.c:665–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663}
664
665enum packet_read_status packet_reader_peek(struct packet_reader *reader)
666{
667 /* Only allow peeking a single line */
668 if (reader->line_peeked)
669 return reader->status;
670
671 /* Peek a line by reading it and setting peeked flag */
672 packet_reader_read(reader);
673 reader->line_peeked = 1;
674 return reader->status;
675}
676
677void packet_writer_init(struct packet_writer *writer, int dest_fd)
678{

Callers 4

process_section_headerFunction · 0.85
upload_packFunction · 0.85
discover_versionFunction · 0.85
process_requestFunction · 0.85

Calls 1

packet_reader_readFunction · 0.85

Tested by

no test coverage detected