From: Junio C Hamano Date: Mon, 11 May 2015 21:23:42 +0000 (-0700) Subject: Merge branch 'jk/reading-packed-refs' X-Git-Tag: v2.5.0-rc0~140 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6cc983d0adc9fca975d977b4432c4645db9de464?ds=inline;hp=--cc 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 --- 6cc983d0adc9fca975d977b4432c4645db9de464