]> git.ipfire.org Git - thirdparty/git.git/commit
merge-ort: drop unnecessary temporary in check_for_directory_rename()
authorElijah Newren <newren@gmail.com>
Wed, 6 Aug 2025 23:15:17 +0000 (23:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Aug 2025 20:23:58 +0000 (13:23 -0700)
commitedbe2abcd8411e5c6598db37ea75b5ab20027da9
tree02e5b6333847bb4aec48bad38d21c6175659bf78
parentc5a2c765a0045ee90473ce1e45947226d5f427c1
merge-ort: drop unnecessary temporary in check_for_directory_rename()

check_for_directory_rename() had a weirdly coded check for whether a
strmap contained a certain key.  Replace the temporary variable and call
to strmap_get_entry() with the more natural strmap_contains() call.

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