There is an updated pull request by sgn against master on the void-packages repository https://github.com/sgn/void-packages support-git-worktree https://github.com/void-linux/void-packages/pull/21207 [RFC] Support git worktree My effort to address #20393 ~This PR haven't set `XBPS_REPOSITORY` to correct branch yet.~ A patch file from https://github.com/void-linux/void-packages/pull/21207.patch is attached