From e3e590eb21bb3b72fc67e7f4bcdaf751e5232878 Mon Sep 17 00:00:00 2001 From: chandprashant92 <69562702+chandprashant92@users.noreply.github.com> Date: Wed, 18 Mar 2026 15:43:23 +0530 Subject: [PATCH] Fix: Reverse git diff direction to correctly detect renamed files with -M95 Fix: Reverse git diff direction to correctly detect renamed files with -M95 --- .../main/kotlin/com/dropbox/affectedmoduledetector/GitClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/GitClient.kt b/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/GitClient.kt index 1d8a7ef..157c99b 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/GitClient.kt +++ b/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/GitClient.kt @@ -202,7 +202,7 @@ internal abstract class GitChangedFilesSource : if (parameters.commitShaProvider.includeUncommitted) { "$CHANGED_FILES_CMD_PREFIX $sha" } else { - "$CHANGED_FILES_CMD_PREFIX $top..$sha" + "$CHANGED_FILES_CMD_PREFIX $sha..$top" } ).map { it.toOsSpecificPath() }