Merge branch 'jk/pkt-line-cleanup' into next
commitd83e970aa1c4999bac38c42dca8e555fef3866cc
authorJunio C Hamano <gitster@pobox.com>
Mon, 25 Feb 2013 18:32:10 +0000 (25 10:32 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Feb 2013 18:32:10 +0000 (25 10:32 -0800)
tree941dd2a4f587c04a75db24dd4217e61d24eabc83
parente8976095932fce4861265330d5a649f235c50c08
parent2a4552021a92be17c7c4d2d2313df9913e8eb4bf
Merge branch 'jk/pkt-line-cleanup' into next

Clean up pkt-line API, implementation and its callers to make
them more robust.

* jk/pkt-line-cleanup:
  remote-curl: always parse incoming refs
  remote-curl: move ref-parsing code up in file
  remote-curl: pass buffer straight to get_remote_heads
  teach get_remote_heads to read from a memory buffer
  pkt-line: share buffer/descriptor reading implementation
  pkt-line: provide a LARGE_PACKET_MAX static buffer
  pkt-line: move LARGE_PACKET_MAX definition from sideband
  pkt-line: teach packet_read_line to chomp newlines
  pkt-line: provide a generic reading function with options
  pkt-line: drop safe_write function
  pkt-line: move a misplaced comment
  write_or_die: raise SIGPIPE when we get EPIPE
  upload-archive: use argv_array to store client arguments
  upload-archive: do not copy repo name
  send-pack: prefer prefixcmp over memcmp in receive_status
  fetch-pack: fix out-of-bounds buffer offset in get_ack
  upload-pack: remove packet debugging harness
  upload-pack: do not add duplicate objects to shallow list
  upload-pack: use get_sha1_hex to parse "shallow" lines

Conflicts:
builtin/fetch-pack.c
builtin/fetch-pack.c
cache.h
fetch-pack.c
transport.c
upload-pack.c