From a2bfa5ec9539f9063e33519e245ae00193783750 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 13 Jan 2026 21:08:26 +0700 Subject: all: get the copyright year from git history If the line that match with pattern on match-copyright does not contains year, or there is no match, try to get the year from the first commit of the file using "git log --follow ..." command. If no commit history or its not using git, use default copyright year from configuration. --- testdata/loadConfig/config_exists/spdxconv.cfg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'testdata/loadConfig') diff --git a/testdata/loadConfig/config_exists/spdxconv.cfg b/testdata/loadConfig/config_exists/spdxconv.cfg index 1f7ff68..b92f0c8 100644 --- a/testdata/loadConfig/config_exists/spdxconv.cfg +++ b/testdata/loadConfig/config_exists/spdxconv.cfg @@ -43,13 +43,13 @@ prefix = "%" pattern = "^.*\\.(apk|app|bz2|csv|doc|docx|exe|gif|gz|jpeg|jpg|json|pdf|png|ppt|pptx|svg|svgz|tar|tgz|xls|xlsx|zip)$" [match-license] -pattern = "^(//+|#+|/\\*+|