Meta/Reintegrate: pass custom merge options

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.

Junio C Hamano committed Apr 15, 2014 at 16:14 UTC 328539987b327e01a8dc21cbfae71f3233dad492
1 file changed +3 -1
Reintegrate
+3 -1
@@ -149,7 +149,9 @@ no)
149
150 mark_cut
151
152 - EDITOR=: git merge $accept_rerere --edit "$branch" ||
152 + rebuild=$(git config "branch.$branch.rebuild" || :)
153 +
154 + EDITOR=: git merge $rebuild $accept_rerere --edit "$branch" ||
155 accept_rerere ||
156 exit
157