Skip to content

Commit 32f99c9

Browse files
committed
LPD-69094 docker-database-saas.gradle: uses --simplify-by-decoration for the strictest history of a given file
A chat with AI revealed that the combination of the file path pathspec and the --simplify-by-decoration results in the strictest possible history filtering for a particular file path. All of the following flags were tried, and were not sufficient (they still printed commits that had close matches, but the exact file path did not exist at that path for that commit): --find-renames=100% --full-history --no-renames --diff-filter=AM The following command was used as a test: git show <commit_hash>:<file_path>
1 parent a6d6413 commit 32f99c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

buildSrc/src/main/groovy/docker-database-saas.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ ext {
347347
Map<String, String> latestReleaseInfo = null
348348
String latestReleaseInfoDate = null
349349

350-
waitForCommand("git log -5 --pretty='%H %cd' --date=format-local:'%Y-%m-%d %H:%M:%S %Z' --find-renames=100% -- ${descriptorPath}", lxcRepositoryFolder).eachLine {
350+
waitForCommand("git log -5 --pretty='%H %cd' --date=format-local:'%Y-%m-%d %H:%M:%S %Z' --simplify-by-decoration -- ${descriptorPath}", lxcRepositoryFolder).eachLine {
351351
String line ->
352352

353353
int pos = line.indexOf(" ")

0 commit comments

Comments
 (0)