]> git.ipfire.org Git - thirdparty/git.git/commit - merge-recursive.c
merge-recursive: rename merge_options argument from 'o' to 'opt'
authorElijah Newren <newren@gmail.com>
Fri, 5 Apr 2019 15:00:13 +0000 (08:00 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Apr 2019 07:02:07 +0000 (16:02 +0900)
commit259ccb6cc324912ea18b151d9c236ac17610c2f5
treec8e566085d8cdd0e3a71a9be40e9bf2f5f0d3cb1
parent5ec1e72823735b5682389589b6bee774ae70fa49
merge-recursive: rename merge_options argument from 'o' to 'opt'

The name 'o' was used for the merge_options struct pointer taken by many
functions, but in a few places it was named 'opt'.  Several functions
that didn't need merge_options instead used 'o' for a diff_filespec
argument or local.  Some functions needed both an inconsistently either
renamed the merge_options to 'opt' or the diff_filespec to 'one'.  I
want to remove the weird split in the codebase between using a
diff_filespec and a pair of (oid,mode) values in favor of using a
diff_filespec everywhere, but that dramatically increases the number of
cases where we want to use 'o' as a diff_filespec.  Rename the
merge_options argument to 'opt' to make room.

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