packfile: keep prepare_packed_git() private