]> git.ipfire.org Git - thirdparty/git.git/commit
merge-recursive: avoid wrapper function when unnecessary and wasteful
authorElijah Newren <newren@gmail.com>
Wed, 19 Sep 2018 16:14:32 +0000 (09:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Sep 2018 19:33:57 +0000 (12:33 -0700)
commit75f3fa79c39a39fd6ca5e4bae73df4073ca97bd4
treef36ac38593ad7c773f047928c9777eaa3869e82a
parent52396e1d3dd1417f042aa5269399bdcffe0a6c66
merge-recursive: avoid wrapper function when unnecessary and wasteful

merge_file_one() is a convenience function taking a bunch of oids and
modes, combining each pair into a diff_filespec, and then calling
merge_file_1().  When we already start with diff_filespec's, we can
just call merge_file_1() directly instead of splitting out the oids
and modes for the wrapper to recombine into what we already had.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c