merge-recursive: clarify the rename_dir/RENAME_DIR meaning
commit5455c33839c6c5d248007ad2b49e8a225e9f47fa
authorElijah Newren <newren@gmail.com>
Sun, 10 Jun 2018 04:16:14 +0000 (9 21:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jun 2018 17:22:57 +0000 (12 10:22 -0700)
tree6209ee0fa85e4fb869028155904947a93d970fce
parent9366536583a101b4e02c2cd047c03d91dc62827d
merge-recursive: clarify the rename_dir/RENAME_DIR meaning

We had an enum of rename types which included RENAME_DIR; this name felt
misleading since it was not about an entire directory but was a status for
each individual file add that occurred within a renamed directory.

Since this type is for signifying that the files in question were being
renamed due to directory rename detection, rename this enum value to
RENAME_VIA_DIR.

Make a similar change to the conflict_rename_dir() function, and add a
comment to the top of that function explaining its purpose (it may not be
quite as obvious as for the other conflict_rename_*() functions).

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