Merge branch 'jk/reading-packed-refs'
commit6cc983d0adc9fca975d977b4432c4645db9de464
authorJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2015 21:23:42 +0000 (11 14:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2015 21:23:42 +0000 (11 14:23 -0700)
treeeb4c7e9af146935175ce09f0568a9a6b31b5a331
parent66ff763ebb35e5fc379f73c2769656cd61fe6b33
parenta33729267504c7b1a63a1f05b47faea6f9e1642c
Merge branch 'jk/reading-packed-refs'

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