summaryrefslogtreecommitdiff
path: root/gettext.c
diff options
context:
space:
mode:
authorLibravatar Patrick Steinhardt <ps@pks.im>2020-04-02 09:09:38 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-02 11:09:48 -0700
commita65b8ac291d919c8f0c89f7397e03662020344ab (patch)
treea3b21e6052938c734d40e9ec5232db31d4a376d3 /gettext.c
parentstrbuf: provide function to append whole lines (diff)
downloadtgif-a65b8ac291d919c8f0c89f7397e03662020344ab.tar.xz
update-ref: organize commands in an array
We currently manually wire up all commands known to `git-update-ref --stdin`, making it harder than necessary to preprocess arguments after the command is determined. To make this more extensible, let's refactor the code to use an array of known commands instead. While this doesn't add a lot of value now, it is a preparatory step to implement line-wise reading of commands. As we're going to introduce commands without trailing spaces, this commit also moves whitespace parsing into the respective commands. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gettext.c')
0 files changed, 0 insertions, 0 deletions