update-ref: pass end pointer instead of strbuf
authorPatrick Steinhardt <ps@pks.im>
Thu, 2 Apr 2020 07:09:48 +0000 (09:09 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Apr 2020 18:09:48 +0000 (11:09 -0700)
commit804dba54f5abdb35b5d15eed63625581c82697fb
treeda32667d14652f29008b58fed12076062d656773
parent5ae6c5a7129a55e69d39cfb70c78bb5b92bbccb7
update-ref: pass end pointer instead of strbuf

We currently pass both an `strbuf` containing the current command line
as well as the `next` pointer pointing to the first argument to
commands. This is both confusing and makes code more intertwined.
Convert this to use a simple pointer as well as a pointer pointing to
the end of the input as a preparatory step to line-wise reading of
stdin.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-ref.c