While rebuilding an integration branch, some topics may need custom
merge options, such as -Xsubtree=where/, to explicitly tell where
that foreign history sits in our tree. Teach the Reintegrate script
to pay attention to branch.$name.rebuild configuration, e.g.
[branch "jl/git-gui-show-added-submodule-changes"]
rebuild = -Xsubtree=git-gui/
to allow customization.
mark_cut
- EDITOR=: git merge $accept_rerere --edit "$branch" ||
+ rebuild=$(git config "branch.$branch.rebuild" || :)
+
+ EDITOR=: git merge $rebuild $accept_rerere --edit "$branch" ||
accept_rerere ||
exit