Take the extension branch, figure out where it diverged from the base branch, and replay these patches in the extension branch as if it was based off the somewhere branch instead.
NB: if the rebase of extension on base would not result in any commit (extension and base pointing to the same commit), no commits will be added onto somewhere.
Say a fix has been developed on the branch fix, and that the changes have been incorporated in the master branch in some manner (merge, cherry-pick, etc). Now we want to backport the fix to a previous point in the history, v1.