diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-13 21:08:26 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-14 04:10:44 +0700 |
| commit | a2bfa5ec9539f9063e33519e245ae00193783750 (patch) | |
| tree | dd15bf22d9b7df7b2079103fbd248c0eb717b59e /testdata/scan/test.sql | |
| parent | 3bc8f7ea570c726d88f4e0d31910b9eec999ce46 (diff) | |
| download | spdxconv-a2bfa5ec9539f9063e33519e245ae00193783750.tar.xz | |
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.
Diffstat (limited to 'testdata/scan/test.sql')
| -rw-r--r-- | testdata/scan/test.sql | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testdata/scan/test.sql b/testdata/scan/test.sql new file mode 100644 index 0000000..86d55b3 --- /dev/null +++ b/testdata/scan/test.sql @@ -0,0 +1,5 @@ +-- Copyright 2022, Shulhan <ms@kilabit.info>. All rights reserved. +-- Use of this source code is governed by a BSD-style +-- license that can be found in the LICENSE file. + +-- comment |
