[PATCH 18/24] qconfig: Move commit code into a separate function