summaryrefslogtreecommitdiffstats
path: root/modules/git
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-05-02 23:22:45 +0800
committerGitHub <noreply@github.com>2022-05-02 23:22:45 +0800
commitc18d8d6968cb175703942631f0094ffb415f51f4 (patch)
treeeab9c1aee4f2eedf1e17323c74c3c7ada7256776 /modules/git
parente2a3f3d259d230b7d1f62138e789ccdfd8f43b73 (diff)
downloadgitea-c18d8d6968cb175703942631f0094ffb415f51f4.tar.gz
gitea-c18d8d6968cb175703942631f0094ffb415f51f4.zip
Remove legacy `+build:` constraint (#19582)
Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed.
Diffstat (limited to 'modules/git')
-rw-r--r--modules/git/blob_gogit.go1
-rw-r--r--modules/git/blob_nogogit.go1
-rw-r--r--modules/git/command_race_test.go1
-rw-r--r--modules/git/commit_convert_gogit.go1
-rw-r--r--modules/git/commit_info_gogit.go1
-rw-r--r--modules/git/commit_info_nogogit.go1
-rw-r--r--modules/git/last_commit_cache_gogit.go1
-rw-r--r--modules/git/last_commit_cache_nogogit.go1
-rw-r--r--modules/git/notes_gogit.go1
-rw-r--r--modules/git/notes_nogogit.go1
-rw-r--r--modules/git/parse_gogit.go1
-rw-r--r--modules/git/parse_gogit_test.go1
-rw-r--r--modules/git/parse_nogogit.go1
-rw-r--r--modules/git/parse_nogogit_test.go1
-rw-r--r--modules/git/pipeline/lfs.go1
-rw-r--r--modules/git/pipeline/lfs_nogogit.go1
-rw-r--r--modules/git/repo_base_gogit.go1
-rw-r--r--modules/git/repo_base_nogogit.go1
-rw-r--r--modules/git/repo_blob_gogit.go1
-rw-r--r--modules/git/repo_blob_nogogit.go1
-rw-r--r--modules/git/repo_branch_gogit.go1
-rw-r--r--modules/git/repo_branch_nogogit.go1
-rw-r--r--modules/git/repo_commit_gogit.go1
-rw-r--r--modules/git/repo_commit_nogogit.go1
-rw-r--r--modules/git/repo_commitgraph_gogit.go1
-rw-r--r--modules/git/repo_language_stats_gogit.go1
-rw-r--r--modules/git/repo_language_stats_nogogit.go1
-rw-r--r--modules/git/repo_language_stats_test.go1
-rw-r--r--modules/git/repo_ref_gogit.go1
-rw-r--r--modules/git/repo_ref_nogogit.go1
-rw-r--r--modules/git/repo_tag_gogit.go1
-rw-r--r--modules/git/repo_tag_nogogit.go1
-rw-r--r--modules/git/repo_tree_gogit.go1
-rw-r--r--modules/git/repo_tree_nogogit.go1
-rw-r--r--modules/git/sha1_gogit.go1
-rw-r--r--modules/git/sha1_nogogit.go1
-rw-r--r--modules/git/signature_gogit.go1
-rw-r--r--modules/git/signature_nogogit.go1
-rw-r--r--modules/git/tree_blob_gogit.go1
-rw-r--r--modules/git/tree_blob_nogogit.go1
-rw-r--r--modules/git/tree_entry_gogit.go1
-rw-r--r--modules/git/tree_entry_nogogit.go1
-rw-r--r--modules/git/tree_entry_test.go1
-rw-r--r--modules/git/tree_gogit.go1
-rw-r--r--modules/git/tree_nogogit.go1
45 files changed, 0 insertions, 45 deletions
diff --git a/modules/git/blob_gogit.go b/modules/git/blob_gogit.go
index ef7a90c3f4..2a2b51e422 100644
--- a/modules/git/blob_gogit.go
+++ b/modules/git/blob_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/blob_nogogit.go b/modules/git/blob_nogogit.go
index aabf1b34ad..211c188559 100644
--- a/modules/git/blob_nogogit.go
+++ b/modules/git/blob_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/command_race_test.go b/modules/git/command_race_test.go
index 9eb29fcfab..ae2acc3a5a 100644
--- a/modules/git/command_race_test.go
+++ b/modules/git/command_race_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build race
-// +build race
package git
diff --git a/modules/git/commit_convert_gogit.go b/modules/git/commit_convert_gogit.go
index b328b3c0ed..bb9d3bf8ce 100644
--- a/modules/git/commit_convert_gogit.go
+++ b/modules/git/commit_convert_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/commit_info_gogit.go b/modules/git/commit_info_gogit.go
index ab6e738103..91a1804db5 100644
--- a/modules/git/commit_info_gogit.go
+++ b/modules/git/commit_info_gogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/commit_info_nogogit.go b/modules/git/commit_info_nogogit.go
index 347ad7d059..f430c672f8 100644
--- a/modules/git/commit_info_nogogit.go
+++ b/modules/git/commit_info_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/last_commit_cache_gogit.go b/modules/git/last_commit_cache_gogit.go
index 06e85a6db2..8897000350 100644
--- a/modules/git/last_commit_cache_gogit.go
+++ b/modules/git/last_commit_cache_gogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/last_commit_cache_nogogit.go b/modules/git/last_commit_cache_nogogit.go
index 5315c0a152..030d5486b6 100644
--- a/modules/git/last_commit_cache_nogogit.go
+++ b/modules/git/last_commit_cache_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/notes_gogit.go b/modules/git/notes_gogit.go
index b1e5e453e4..76bc828957 100644
--- a/modules/git/notes_gogit.go
+++ b/modules/git/notes_gogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/notes_nogogit.go b/modules/git/notes_nogogit.go
index bbc8ee1371..e3f0a3fee9 100644
--- a/modules/git/notes_nogogit.go
+++ b/modules/git/notes_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/parse_gogit.go b/modules/git/parse_gogit.go
index c42e32929e..409432c5d6 100644
--- a/modules/git/parse_gogit.go
+++ b/modules/git/parse_gogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/parse_gogit_test.go b/modules/git/parse_gogit_test.go
index c27f5172d5..075de6d25d 100644
--- a/modules/git/parse_gogit_test.go
+++ b/modules/git/parse_gogit_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/parse_nogogit.go b/modules/git/parse_nogogit.go
index dd5554b5dd..6dc4900992 100644
--- a/modules/git/parse_nogogit.go
+++ b/modules/git/parse_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/parse_nogogit_test.go b/modules/git/parse_nogogit_test.go
index d6d6f3868c..483f96e9a7 100644
--- a/modules/git/parse_nogogit_test.go
+++ b/modules/git/parse_nogogit_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/pipeline/lfs.go b/modules/git/pipeline/lfs.go
index 1b64b672e4..18cce34289 100644
--- a/modules/git/pipeline/lfs.go
+++ b/modules/git/pipeline/lfs.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package pipeline
diff --git a/modules/git/pipeline/lfs_nogogit.go b/modules/git/pipeline/lfs_nogogit.go
index 31c10c6002..a2b5dd0c96 100644
--- a/modules/git/pipeline/lfs_nogogit.go
+++ b/modules/git/pipeline/lfs_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package pipeline
diff --git a/modules/git/repo_base_gogit.go b/modules/git/repo_base_gogit.go
index 059f75fb3c..cd2ca25dfb 100644
--- a/modules/git/repo_base_gogit.go
+++ b/modules/git/repo_base_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/repo_base_nogogit.go b/modules/git/repo_base_nogogit.go
index c4a0e82c89..df24d952a8 100644
--- a/modules/git/repo_base_nogogit.go
+++ b/modules/git/repo_base_nogogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/repo_blob_gogit.go b/modules/git/repo_blob_gogit.go
index b11e9f58fe..5640011f4a 100644
--- a/modules/git/repo_blob_gogit.go
+++ b/modules/git/repo_blob_gogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/repo_blob_nogogit.go b/modules/git/repo_blob_nogogit.go
index 775b3835dd..44ba0a36b1 100644
--- a/modules/git/repo_blob_nogogit.go
+++ b/modules/git/repo_blob_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/repo_branch_gogit.go b/modules/git/repo_branch_gogit.go
index bf3eb857b9..ecedb56686 100644
--- a/modules/git/repo_branch_gogit.go
+++ b/modules/git/repo_branch_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/repo_branch_nogogit.go b/modules/git/repo_branch_nogogit.go
index 4393db10f9..3aed4abdf3 100644
--- a/modules/git/repo_branch_nogogit.go
+++ b/modules/git/repo_branch_nogogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/repo_commit_gogit.go b/modules/git/repo_commit_gogit.go
index f3504f25d8..9333b0d7b7 100644
--- a/modules/git/repo_commit_gogit.go
+++ b/modules/git/repo_commit_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/repo_commit_nogogit.go b/modules/git/repo_commit_nogogit.go
index c9afe35b1a..e528af0ffb 100644
--- a/modules/git/repo_commit_nogogit.go
+++ b/modules/git/repo_commit_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/repo_commitgraph_gogit.go b/modules/git/repo_commitgraph_gogit.go
index 84a2edb664..6b00a4fdc4 100644
--- a/modules/git/repo_commitgraph_gogit.go
+++ b/modules/git/repo_commitgraph_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/repo_language_stats_gogit.go b/modules/git/repo_language_stats_gogit.go
index 037ec41ec6..3c9f026b7a 100644
--- a/modules/git/repo_language_stats_gogit.go
+++ b/modules/git/repo_language_stats_gogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/repo_language_stats_nogogit.go b/modules/git/repo_language_stats_nogogit.go
index adb11dd8fa..41b176f816 100644
--- a/modules/git/repo_language_stats_nogogit.go
+++ b/modules/git/repo_language_stats_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/repo_language_stats_test.go b/modules/git/repo_language_stats_test.go
index 6a4e23f99b..0234c77c0b 100644
--- a/modules/git/repo_language_stats_test.go
+++ b/modules/git/repo_language_stats_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/repo_ref_gogit.go b/modules/git/repo_ref_gogit.go
index 9f0e11366f..d11c58e005 100644
--- a/modules/git/repo_ref_gogit.go
+++ b/modules/git/repo_ref_gogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/repo_ref_nogogit.go b/modules/git/repo_ref_nogogit.go
index 40e8a247c7..d766a8cac3 100644
--- a/modules/git/repo_ref_nogogit.go
+++ b/modules/git/repo_ref_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/repo_tag_gogit.go b/modules/git/repo_tag_gogit.go
index 5c87e914c0..c6dec28987 100644
--- a/modules/git/repo_tag_gogit.go
+++ b/modules/git/repo_tag_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/repo_tag_nogogit.go b/modules/git/repo_tag_nogogit.go
index f2da7d8857..8d44db0a2e 100644
--- a/modules/git/repo_tag_nogogit.go
+++ b/modules/git/repo_tag_nogogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/repo_tree_gogit.go b/modules/git/repo_tree_gogit.go
index cc156ea916..eef09cddd6 100644
--- a/modules/git/repo_tree_gogit.go
+++ b/modules/git/repo_tree_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/repo_tree_nogogit.go b/modules/git/repo_tree_nogogit.go
index 00009c997d..dc4a5becb9 100644
--- a/modules/git/repo_tree_nogogit.go
+++ b/modules/git/repo_tree_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/sha1_gogit.go b/modules/git/sha1_gogit.go
index 30290f14b7..16501efb43 100644
--- a/modules/git/sha1_gogit.go
+++ b/modules/git/sha1_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/sha1_nogogit.go b/modules/git/sha1_nogogit.go
index 53665fc921..1835c68f5a 100644
--- a/modules/git/sha1_nogogit.go
+++ b/modules/git/sha1_nogogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/signature_gogit.go b/modules/git/signature_gogit.go
index 903a48133f..fe81cd97df 100644
--- a/modules/git/signature_gogit.go
+++ b/modules/git/signature_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/signature_nogogit.go b/modules/git/signature_nogogit.go
index c6fe8e6d1a..81da739a5b 100644
--- a/modules/git/signature_nogogit.go
+++ b/modules/git/signature_nogogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/tree_blob_gogit.go b/modules/git/tree_blob_gogit.go
index be7cb33d35..bb010b5883 100644
--- a/modules/git/tree_blob_gogit.go
+++ b/modules/git/tree_blob_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/tree_blob_nogogit.go b/modules/git/tree_blob_nogogit.go
index df23ff01b4..3770004d6d 100644
--- a/modules/git/tree_blob_nogogit.go
+++ b/modules/git/tree_blob_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/tree_entry_gogit.go b/modules/git/tree_entry_gogit.go
index 20e767eea1..2b2992c32a 100644
--- a/modules/git/tree_entry_gogit.go
+++ b/modules/git/tree_entry_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/tree_entry_nogogit.go b/modules/git/tree_entry_nogogit.go
index 076062e1d6..aff67a3b22 100644
--- a/modules/git/tree_entry_nogogit.go
+++ b/modules/git/tree_entry_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git
diff --git a/modules/git/tree_entry_test.go b/modules/git/tree_entry_test.go
index 9347e10b1b..c512c7348e 100644
--- a/modules/git/tree_entry_test.go
+++ b/modules/git/tree_entry_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/tree_gogit.go b/modules/git/tree_gogit.go
index bc02088366..54f8e140fb 100644
--- a/modules/git/tree_gogit.go
+++ b/modules/git/tree_gogit.go
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
-// +build gogit
package git
diff --git a/modules/git/tree_nogogit.go b/modules/git/tree_nogogit.go
index f852c5a51e..7defb064a4 100644
--- a/modules/git/tree_nogogit.go
+++ b/modules/git/tree_nogogit.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
-// +build !gogit
package git