Merge branch 'jk/reading-packed-refs' into next
commit89b56941ca6dbfe66b97d62499ce7a8dd1a1dc8b
authorJunio C Hamano <gitster@pobox.com>
Wed, 6 May 2015 04:14:30 +0000 (5 21:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 May 2015 04:14:30 +0000 (5 21:14 -0700)
treea2ced22146a46aa62d0a45b142ae8709bdd23bfe
parenta2fe74da33011fec42409085b1e101a984869914
parenta33729267504c7b1a63a1f05b47faea6f9e1642c
Merge branch 'jk/reading-packed-refs' into next

An earlier rewrite to use strbuf_getwholeline() instead of fgets(3)
to read packed-refs file revealed that the former is unacceptably
inefficient.

* jk/reading-packed-refs:
  t1430: add another refs-escape test
  read_packed_refs: avoid double-checking sane refs
  strbuf_getwholeline: use getdelim if it is available
  strbuf_getwholeline: avoid calling strbuf_grow
  strbuf_addch: avoid calling strbuf_grow
  config: use getc_unlocked when reading from file
  strbuf_getwholeline: use getc_unlocked
  git-compat-util: add fallbacks for unlocked stdio
  strbuf_getwholeline: use getc macro
config.c
refs.c