diff options
author | Patrick Steinhardt <ps@pks.im> | 2020-04-02 09:09:38 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-02 11:09:48 -0700 |
commit | a65b8ac291d919c8f0c89f7397e03662020344ab (patch) | |
tree | a3b21e6052938c734d40e9ec5232db31d4a376d3 /Documentation/git-verify-pack.txt | |
parent | strbuf: provide function to append whole lines (diff) | |
download | tgif-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 'Documentation/git-verify-pack.txt')
0 files changed, 0 insertions, 0 deletions