From 446de568db01780443d91d0dfb16c129497709db Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 03 Mar 2025 21:14:55 +0800 Subject: [PATCH] Add SPDX license headers to all Go files --- acl.go | 3 +++ config.go | 3 +++ database.go | 3 +++ git_format_patch.go | 3 +++ git_hooks_deploy.go | 3 +++ git_hooks_handle.go | 3 +++ git_init.go | 3 +++ git_misc.go | 3 +++ git_ref.go | 3 +++ http_auth.go | 3 +++ http_global.go | 3 +++ http_handle_group_index.go | 3 +++ http_handle_index.go | 3 +++ http_handle_login.go | 3 +++ http_handle_repo_commit.go | 3 +++ http_handle_repo_contrib_index.go | 3 +++ http_handle_repo_contrib_one.go | 3 +++ http_handle_repo_index.go | 3 +++ http_handle_repo_info.go | 3 +++ http_handle_repo_log.go | 3 +++ http_handle_repo_raw.go | 3 +++ http_handle_repo_tree.go | 3 +++ http_handle_repo_upload_pack.go | 3 +++ http_handle_users.go | 3 +++ http_render_readme.go | 3 +++ http_server.go | 3 +++ http_template.go | 3 +++ http_template_funcs.go | 3 +++ main.go | 3 +++ remote_url.go | 3 +++ resources.go | 3 +++ ssh_handle_receive_pack.go | 3 +++ ssh_handle_upload_pack.go | 3 +++ ssh_server.go | 3 +++ ssh_utils.go | 3 +++ url.go | 3 +++ users.go | 3 +++ diff --git a/acl.go b/acl.go index 414e102833da1871ec4d6752b70f2b975e56113e..a629da68099e8d0a3ffbfc72f3bb9498498097f8 100644 --- a/acl.go +++ b/acl.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/config.go b/config.go index 78c2cc44be6b63ad19e697d75382f5d392a20e34..36ae52143e1601261b99ea663af1f3d42821f3df 100644 --- a/config.go +++ b/config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/database.go b/database.go index e2591d2bf0a54b3d0068e99f6abe6e5669ae048a..14e19c05c95e1e7249519af570d22ce228c21601 100644 --- a/database.go +++ b/database.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/git_format_patch.go b/git_format_patch.go index 2ebd2c2daf3ebe616a07bb46ff9c07f766185d3e..ecec6d91bbdd543a8a4dc41d956a66852eb0b19f 100644 --- a/git_format_patch.go +++ b/git_format_patch.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/git_hooks_deploy.go b/git_hooks_deploy.go index 7ac24c21ade1cf994e0267da66d316843ebfb450..99e54642fc8ed2cadb0eb5804f3f02f7d32b8779 100644 --- a/git_hooks_deploy.go +++ b/git_hooks_deploy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/git_hooks_handle.go b/git_hooks_handle.go index 59d29c7b545d6b8fbe5d2a077968993eb2228918..47e856c25ec61699858b9615915d9c126f283e9c 100644 --- a/git_hooks_handle.go +++ b/git_hooks_handle.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/git_init.go b/git_init.go index 10b0382800c618150237531bdea4ed70018a025f..2e1063347455559755e0a10f0732bd17845caee5 100644 --- a/git_init.go +++ b/git_init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/git_misc.go b/git_misc.go index 2827c17d34c688246804271b184e8e0237315ef9..80ac6e8caec8997170c5fbefe963f9216ef99ee4 100644 --- a/git_misc.go +++ b/git_misc.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/git_ref.go b/git_ref.go index ce4e067a3d05b957e1f157926a6dc0249bf99249..dbfe1fab42ebedf04c343e2f47826e4a53892c60 100644 --- a/git_ref.go +++ b/git_ref.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_auth.go b/http_auth.go index eb6e6040942c9df3b243adf228ac0a0833fb616d..b88fb459b5acd4f7c5d9eab8714f13a974be9136 100644 --- a/http_auth.go +++ b/http_auth.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_global.go b/http_global.go index ac66069f9834b56aab00897b2693523f7003653c..20a1cbc6aa54bdcea0cecd970384f563e181a899 100644 --- a/http_global.go +++ b/http_global.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main // global_data is passed as "global" when rendering HTML templates. diff --git a/http_handle_group_index.go b/http_handle_group_index.go index a7d087914fdd33e3b9456a97af7dced2dedc2df0..7bb3c14e8f603c2ff31176ff08dd165a2b7a3d03 100644 --- a/http_handle_group_index.go +++ b/http_handle_group_index.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_index.go b/http_handle_index.go index 6a870c2cc610af18e21532cb95123afd74a22948..9d424c7e9d7f88ffd34cf2dc502cd94aec9ab451 100644 --- a/http_handle_index.go +++ b/http_handle_index.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_login.go b/http_handle_login.go index 5aed6803a53eaa78e590d095360c768f9d2df229..545cc85e1cb00aa596eb6ced3238769864e86ce8 100644 --- a/http_handle_login.go +++ b/http_handle_login.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_repo_commit.go b/http_handle_repo_commit.go index 0e57002fc7bd7c57a45ba9049b55f8c831254824..ba09d257db1b28ebbe8bc61cddce5cd5d9db2a66 100644 --- a/http_handle_repo_commit.go +++ b/http_handle_repo_commit.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_repo_contrib_index.go b/http_handle_repo_contrib_index.go index e864dfa235b2ac132186872f434008bcb041aad0..2e0dc1da74630aa6fed2c6039069623e80efa216 100644 --- a/http_handle_repo_contrib_index.go +++ b/http_handle_repo_contrib_index.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_repo_contrib_one.go b/http_handle_repo_contrib_one.go index 8926155bb4dc63e058fe59089566d60db73dfc81..43c899610c5f45b219cb17b325b38633991425b7 100644 --- a/http_handle_repo_contrib_one.go +++ b/http_handle_repo_contrib_one.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_repo_index.go b/http_handle_repo_index.go index cd41f50c47a951f3194b541cdecf4bcdfdb97656..d83739e9c3edb31c3934c80d4067b88081064ffd 100644 --- a/http_handle_repo_index.go +++ b/http_handle_repo_index.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_repo_info.go b/http_handle_repo_info.go index 2927982fc05427ee25768a47ff66e6d59cc52f1a..5ff8c585c08659e5cd782df32db3ff9816d1328c 100644 --- a/http_handle_repo_info.go +++ b/http_handle_repo_info.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_repo_log.go b/http_handle_repo_log.go index f2c96b436b76bece8f3b329f13b034327fc83c32..52762a30dcadb7bd12aef27a91dba23b99066497 100644 --- a/http_handle_repo_log.go +++ b/http_handle_repo_log.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_repo_raw.go b/http_handle_repo_raw.go index 6c4550cdff69d26678915007bf82c9c1c7d0e879..68b69f6cad21f2efe4c753a30058a118b9f62453 100644 --- a/http_handle_repo_raw.go +++ b/http_handle_repo_raw.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_repo_tree.go b/http_handle_repo_tree.go index 10dc2a18a75905493cbf7ebbd28c96219cbd858c..a6173ae9428f86016ad6f2ae8f4144c25c396699 100644 --- a/http_handle_repo_tree.go +++ b/http_handle_repo_tree.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_repo_upload_pack.go b/http_handle_repo_upload_pack.go index a19b08127308580cbc97f184c69814b2f3240d6c..95003f77921a268ab287ff10c06b2ed7be45c89c 100644 --- a/http_handle_repo_upload_pack.go +++ b/http_handle_repo_upload_pack.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_handle_users.go b/http_handle_users.go index bf5939eb107a4f9a2216427a6cb9986f68a6cd57..8a66d56904d62c21b3afa321912be87304c8404f 100644 --- a/http_handle_users.go +++ b/http_handle_users.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_render_readme.go b/http_render_readme.go index 497b3ec7fdaa84388c07e84732bf12e30f2da0a3..0cd80fa9d9177f6f0234eb793fa49e1c0e2ec49b 100644 --- a/http_render_readme.go +++ b/http_render_readme.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_server.go b/http_server.go index 2a92f76832aa244fe6209ca365030db72e329057..1d91874b39902b77896912d765c9f086b1675e5f 100644 --- a/http_server.go +++ b/http_server.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/http_template.go b/http_template.go index 96338a35a34edec286b55c4834e61dfe34f5bd38..be175f10f35c47ecf6daf7177bf2c8e207acce55 100644 --- a/http_template.go +++ b/http_template.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import "net/http" diff --git a/http_template_funcs.go b/http_template_funcs.go index 19a92ecd1218f1f1ecaf3fa2df32315108651b98..119a800d95f7e3ab59ce5e575001c6881caebab9 100644 --- a/http_template_funcs.go +++ b/http_template_funcs.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/main.go b/main.go index 9f1606bcc47494b62f28da8590a085df30ca4527..075030326afa6741791a8eb5cd57dd699ad1adec 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/remote_url.go b/remote_url.go index 8a192a88f5c489f2f4146402c85bc4d37a348788..e478324bca87520ee231e27206fe45d090e84a77 100644 --- a/remote_url.go +++ b/remote_url.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/resources.go b/resources.go index 81830a45f0f69171ccadacf63f584d57c4b38f01..6c3cece40de1eaeb9cf2c8aa9ba5a1c3ac17f8fa 100644 --- a/resources.go +++ b/resources.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/ssh_handle_receive_pack.go b/ssh_handle_receive_pack.go index 971d11c2d3dd0078d002a551ff12ca8e2db30993..27a60f7585ecce2f79247f8b9303f50a06e032be 100644 --- a/ssh_handle_receive_pack.go +++ b/ssh_handle_receive_pack.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/ssh_handle_upload_pack.go b/ssh_handle_upload_pack.go index a62f918f16c760527a27399dffc3f7a1537a5da0..33326316af7c80d3d2dd8e02490554e419344a43 100644 --- a/ssh_handle_upload_pack.go +++ b/ssh_handle_upload_pack.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/ssh_server.go b/ssh_server.go index f6cb54227d0d509b957906ac8b53cec8c85f917f..59df15a31d7f8d0ec87dd8cc8cf7474f5025f770 100644 --- a/ssh_server.go +++ b/ssh_server.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/ssh_utils.go b/ssh_utils.go index 6074dff972110c213222b277cca533dc5694c98d..b3f048ceddd2cdd31562db0f99d6968d10897731 100644 --- a/ssh_utils.go +++ b/ssh_utils.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/url.go b/url.go index ea11555e95d2ae02ca6435edd8f4f1c274c9ea1d..d391de2a1a528a0cfd89c52799512faaa6447ce1 100644 --- a/url.go +++ b/url.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( diff --git a/users.go b/users.go index 9ac07984fc7f66a2595d7477d3d31dcc6ca0539e..884fac1342747d4d5a5d2262c3c5412faa4561c9 100644 --- a/users.go +++ b/users.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileContributor: Runxi Yu + package main import ( -- 2.48.1