I thought checking out the last commit of the range would possibly help, but I of course end up in a detached HEAD state. If the range of commits are within the history of the current branch you could just do an interactive rebase back to the earliest of the desired range of commits and only make changes within the range of commits. Any commits after that range would remain unchanged if they aren’t modified during the rebase. Would that work for what you had in mind?