I wasn’t aware that I can unstage/stage during the execution of those hooks. That mighht indeed be a viable solution for me.
Even though I had to hook that into our lefthook workflow without touching the YAML file or damaging the hookfiles created by lefthook…