subtree: refactor split of a commit into standalone method
commit565e4b79816c1618161a5bd647982aa0daff81c4
authorStrain, Roger L <roger.strain@swri.org>
Fri, 28 Sep 2018 18:35:37 +0000 (28 13:35 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Oct 2018 23:09:34 +0000 (7 08:09 +0900)
treeb76081d984008aaf5bdd565d8779a335ca65d4bb
parentf84b9b09d40408cf91bbc500d9f190a7866c3e0f
subtree: refactor split of a commit into standalone method

In a particularly complex repo, subtree split was not creating
compatible splits for pushing back to a separate repo. Addressing
one of the issues requires recursive handling of parent commits
that were not initially considered by the algorithm. This commit
makes no functional changes, but relocates the code to be called
recursively into a new method to simply comparisons of later
commits.

Signed-off-by: Strain, Roger L <roger.strain@swri.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/git-subtree.sh