]> git.ipfire.org Git - thirdparty/systemd.git/commit
Split up the giant switch statement in homectl's parse_argv (#40059)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 16 Jan 2026 13:31:08 +0000 (14:31 +0100)
committerGitHub <noreply@github.com>
Fri, 16 Jan 2026 13:31:08 +0000 (14:31 +0100)
commit3a5b37e162f8e118b8292fb3d3eda940552158c5
tree264027eba6aae310db0cc0430358987e4f713152
parent1bbeb78ea2f3cb0bc732833278c4fa1418318061
parentf2c3ef9678b4046a03f9586ba9164418628c18e8
Split up the giant switch statement in homectl's parse_argv (#40059)

This is in preparation for later changes. The 1500+ line switch statement was very
hard to work with and had quite a bit of duplicated code. This is a rework that
splits outs parts into functions. I split this up into a bunch of commits so that it
can be reasonably reviewed. When viewed as one giant commit, diff just shows
a giant block of removed code and a giant block of added code.

In some cases I wasn't sure why one or the other of the identity arrays is used…
I preserved existing behaviour in all cases.
src/home/homectl.c