summaryrefslogtreecommitdiff
path: root/tag.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2020-04-02 07:09:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-02 18:09:48 (GMT)
commita65b8ac291d919c8f0c89f7397e03662020344ab (patch)
treea3b21e6052938c734d40e9ec5232db31d4a376d3 /tag.h
parentbd021f39103fab4c5ae53a4d1a1756f8970d00db (diff)
downloadgit-a65b8ac291d919c8f0c89f7397e03662020344ab.zip
git-a65b8ac291d919c8f0c89f7397e03662020344ab.tar.gz
git-a65b8ac291d919c8f0c89f7397e03662020344ab.tar.bz2
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 'tag.h')
0 files changed, 0 insertions, 0 deletions