From 396ad5dc957581847b4ffad4e4770d04e3a958b6 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 27 Jan 2017 16:45:14 +0100 Subject: [PATCH 1/3] Improve cgit detection This can be tested on [kernel.org](https://git.kernel.org/cgit/) --- src/apps.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index 4b06a262f..a200cc48f 100755 --- a/src/apps.json +++ b/src/apps.json @@ -8575,7 +8575,13 @@ "cats": [ 19 ], - "html": "<[^>]+id='cgit'", + "meta": { + "generator": "^cgit v([\d.a-z-]+)$\\;version:\\1" + }, + "html": [ + "<[^>]+id='cgit'", + "generated by cgit v([\d.a-z-]+)\\;version:\\1" + ], "icon": "cgit.png", "implies": "Perl", "website": "git.zx2c4.com/cgit" From 8de6a76cedd78294d93979a45450f9257e26635b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 27 Jan 2017 16:51:29 +0100 Subject: [PATCH 2/3] cgit is coded in C, not in Perl,and it implies git. --- src/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index a200cc48f..9344f5427 100755 --- a/src/apps.json +++ b/src/apps.json @@ -8583,7 +8583,7 @@ "generated by cgit v([\d.a-z-]+)\\;version:\\1" ], "icon": "cgit.png", - "implies": "Perl", + "implies": "git", "website": "git.zx2c4.com/cgit" }, "comScore": { From 21569dee19abd113d7b5dde905236ce7f90cba08 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 27 Jan 2017 17:08:54 +0100 Subject: [PATCH 3/3] Fix the regexp --- src/apps.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps.json b/src/apps.json index 9344f5427..88a58ccbb 100755 --- a/src/apps.json +++ b/src/apps.json @@ -8576,11 +8576,11 @@ 19 ], "meta": { - "generator": "^cgit v([\d.a-z-]+)$\\;version:\\1" + "generator": "^cgit v([\\d.a-z-]+)$\\;version:\\1" }, "html": [ "<[^>]+id='cgit'", - "generated by cgit v([\d.a-z-]+)\\;version:\\1" + "generated by cgit v([\\d.a-z-]+)\\;version:\\1" ], "icon": "cgit.png", "implies": "git",