summaryrefslogtreecommitdiff
path: root/fetch-object.c
diff options
context:
space:
mode:
authorStrain, Roger L <roger.strain@swri.org>2018-09-28 18:35:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-06 23:09:34 (GMT)
commit68f8ff81513fb3599ef3dfc3dd11da36d868e91b (patch)
tree4a013c3fe14bdf251fd76b1a6d89f6adfc94abdf /fetch-object.c
parent315a84f9aa0e2e629b0680068646b0032518ebed (diff)
downloadgit-68f8ff81513fb3599ef3dfc3dd11da36d868e91b.zip
git-68f8ff81513fb3599ef3dfc3dd11da36d868e91b.tar.gz
git-68f8ff81513fb3599ef3dfc3dd11da36d868e91b.tar.bz2
subtree: improve decision on merges kept in split
When multiple identical parents are detected for a commit being considered for copying, explicitly check whether one is the common merge base between the commits. If so, the other commit can be used as the identical parent; if not, a merge must be performed to maintain history. In some situations two parents of a merge commit may appear to both have identical subtree content with each other and the current commit. However, those parents can potentially come from different commit graphs. Previous behavior would simply select one of the identical parents to serve as the replacement for this commit, based on the order in which they were processed. New behavior compares the merge base between the commits to determine if a new merge commit is necessary to maintain history despite the identical content. Signed-off-by: Strain, Roger L <roger.strain@swri.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fetch-object.c')
0 files changed, 0 insertions, 0 deletions