update-ref --stdin: read the whole input at once
commite23d84350a3f4a3bfb86037eb1e6c4b28240324e
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 7 Apr 2014 13:47:58 +0000 (7 15:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2014 19:09:11 +0000 (7 12:09 -0700)
tree2d0105cc86c4c49c7366001a951b644fbfc074b0
parent595deb8da69b4f816ff0c8e669b49f7527ff609b
update-ref --stdin: read the whole input at once

Read the whole input into a strbuf at once, and then parse it from
there.  This might also be a tad faster, but that is not the point.
The point is to decouple the parsing code from the input source (the
old parsing code had to read new data even in the middle of commands).
Add docstrings for the parsing functions.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-ref.c