From 28590dd93ab41b15d3daeeeb8ce6a5819b2e0ab4 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Mon, 20 Mar 2023 11:40:35 +0800 Subject: [PATCH] Add ignoreset for gitweb sites Filter out anything referencing individual commits. Allow downloading all files and snapshots though. --- db/ignore_patterns/gitweb.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/ignore_patterns/gitweb.json diff --git a/db/ignore_patterns/gitweb.json b/db/ignore_patterns/gitweb.json new file mode 100644 index 00000000..64ca6bb8 --- /dev/null +++ b/db/ignore_patterns/gitweb.json @@ -0,0 +1,11 @@ +{ + "name": "gitweb", + "patterns": [ + "[?;&]a=commit($|[;&])", + "[?;&]a=commitdiff($|[;&])", + "[?;&]hb?=[0-9a-f]+($|[;&])", + "[?;&]a=blob_plain[;&]f=[^;&]*[;&]hb=refs/[^;&]*($|[;&])", + "[?;&]a=history[;&]f=[^;&]+([;&]hb=HEAD)($|[;&])" + ], + "type": "ignore_patterns" +}