]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
git-filter.py: Document that we cannot normalize here
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 3 Oct 2023 13:48:10 +0000 (15:48 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 5 Oct 2023 08:32:08 +0000 (10:32 +0200)
.github/scripts/git-filter.py

index 14033eb38edaaec0e940131e32f4c5c76819235e..d776cc550222a1d25917c5701f4eef1783632512 100755 (executable)
@@ -16,6 +16,10 @@ import unidiff
 
 def main():
     """Start the script."""
+    # It might be tempting to normalize the paths here instead of
+    # rewriting the compilation database, but then clang-tidy
+    # loses the depth of files in the repository, outputing for
+    # example "credentials.cc" instead of "pdns/credentials.cc"
     compdb = helpers.load_compdb("compile_commands.json")
     compdb = helpers.index_compdb(compdb)