I'm working on two separate features, but as it turns out there is a lot of shared functionality. We're not in a position to refactor this out at the moment into a single library but I would like to re-use my code. The issue is both branches are in-progress and neither will get merged to our dev branch for a while. Switching branch back and forth (we use SourceTree around Git) means I never have both branches' code at the same time.
Other than some ugly "checkout A, copy code to a temp dir, checkout B" solution, what's a good way to handle this? Or is that as good a way as any?