summaryrefslogtreecommitdiffstats
path: root/services/repository/files
diff options
context:
space:
mode:
authorflynnnnnnnnnn <118399147+flynnnnnnnnnn@users.noreply.github.com>2022-11-27 13:20:29 -0500
committerGitHub <noreply@github.com>2022-11-27 18:20:29 +0000
commite81ccc406bf723a5a58d685e7782f281736affd4 (patch)
treebc9812f3f1779f8ce86b8f915d08aafd02e944b9 /services/repository/files
parentf6fd501841816f5e5c1c9a30fbc4c9a2a6f987bc (diff)
downloadgitea-e81ccc406bf723a5a58d685e7782f281736affd4.tar.gz
gitea-e81ccc406bf723a5a58d685e7782f281736affd4.zip
Implement FSFE REUSE for golang files (#21840)
Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'services/repository/files')
-rw-r--r--services/repository/files/cherry_pick.go3
-rw-r--r--services/repository/files/commit.go3
-rw-r--r--services/repository/files/content.go3
-rw-r--r--services/repository/files/content_test.go3
-rw-r--r--services/repository/files/delete.go3
-rw-r--r--services/repository/files/diff.go3
-rw-r--r--services/repository/files/diff_test.go3
-rw-r--r--services/repository/files/file.go3
-rw-r--r--services/repository/files/file_test.go3
-rw-r--r--services/repository/files/patch.go3
-rw-r--r--services/repository/files/temp_repo.go3
-rw-r--r--services/repository/files/tree.go3
-rw-r--r--services/repository/files/tree_test.go3
-rw-r--r--services/repository/files/update.go3
-rw-r--r--services/repository/files/upload.go3
15 files changed, 15 insertions, 30 deletions
diff --git a/services/repository/files/cherry_pick.go b/services/repository/files/cherry_pick.go
index a30d4f6025..6bc67e2636 100644
--- a/services/repository/files/cherry_pick.go
+++ b/services/repository/files/cherry_pick.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/commit.go b/services/repository/files/commit.go
index bc5a4c8ed3..c49b03d608 100644
--- a/services/repository/files/commit.go
+++ b/services/repository/files/commit.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/content.go b/services/repository/files/content.go
index 34c8aeec25..a311625f31 100644
--- a/services/repository/files/content.go
+++ b/services/repository/files/content.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/content_test.go b/services/repository/files/content_test.go
index 24fcd6c4c5..a43b71cf31 100644
--- a/services/repository/files/content_test.go
+++ b/services/repository/files/content_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/delete.go b/services/repository/files/delete.go
index f098052ad8..faa60bb3ba 100644
--- a/services/repository/files/delete.go
+++ b/services/repository/files/delete.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/diff.go b/services/repository/files/diff.go
index dbe1bef52b..373249b114 100644
--- a/services/repository/files/diff.go
+++ b/services/repository/files/diff.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/diff_test.go b/services/repository/files/diff_test.go
index 310308ca88..621816e97d 100644
--- a/services/repository/files/diff_test.go
+++ b/services/repository/files/diff_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/file.go b/services/repository/files/file.go
index c6c626c9ce..ddd64a5399 100644
--- a/services/repository/files/file.go
+++ b/services/repository/files/file.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/file_test.go b/services/repository/files/file_test.go
index e158c63de2..e1c7d5d7fb 100644
--- a/services/repository/files/file_test.go
+++ b/services/repository/files/file_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/patch.go b/services/repository/files/patch.go
index 2be01f25be..b5eef8c091 100644
--- a/services/repository/files/patch.go
+++ b/services/repository/files/patch.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/temp_repo.go b/services/repository/files/temp_repo.go
index b96d9e7b3d..1f3375cdcc 100644
--- a/services/repository/files/temp_repo.go
+++ b/services/repository/files/temp_repo.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/tree.go b/services/repository/files/tree.go
index 59e5690977..1aa6d0df36 100644
--- a/services/repository/files/tree.go
+++ b/services/repository/files/tree.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/tree_test.go b/services/repository/files/tree_test.go
index e900480d35..a500dbdb22 100644
--- a/services/repository/files/tree_test.go
+++ b/services/repository/files/tree_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/update.go b/services/repository/files/update.go
index 1721b00b01..f7a41ef24c 100644
--- a/services/repository/files/update.go
+++ b/services/repository/files/update.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/upload.go b/services/repository/files/upload.go
index 3728780991..0ada3885b1 100644
--- a/services/repository/files/upload.go
+++ b/services/repository/files/upload.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files