From 67fa5bf9b417ccb5c0b4e00b52d1412a4fdacd39 Mon Sep 17 00:00:00 2001 From: Viacheslav Klimov Date: Fri, 16 Oct 2026 16:46:24 +0300 Subject: [PATCH] Correct the license check README on merge-added rename sources --- tools/src/main/python/license-headers/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/src/main/python/license-headers/README.md b/tools/src/main/python/license-headers/README.md index 639b150da6..63830b1701 100644 --- a/tools/src/main/python/license-headers/README.md +++ b/tools/src/main/python/license-headers/README.md @@ -33,8 +33,9 @@ relicensing commit, the check follows the source path the same way from the parent of the rename. The chain ends at a source that no commit after the CE commits added and whose path exists in the CE commits merged into the parent of the rename. Any other source, such as a CE file deleted and restored or a file -that a merge added, counts as CE only when, without the header, it is at least 50% -similar to the CE version of its path; otherwise the file needs a decision, and +a merge added at a path the CE commits merged before the rename did not have, +counts as CE only when, without the header, it is at least 50% similar to the CE +version of its path; otherwise the file needs a decision, and so does a file whose chain runs through a path that parallel branches added separately. Git scores a rename with the header included, so each rename in the chain counts only when the file without the header is at least 50% similar