From 5ed12ec81dbb1b2e612fe21f7579295c8d8cab33 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Aug 2025 10:25:25 -0400 Subject: [PATCH] standardize file header wrt licensing We've been slightly inconsistent in the license header in files. Standardize them so we can automate checking. Change-Id: I3cdf85c9485d33cac2bb05c8080dfada3e5a5e8d Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/500102 Reviewed-by: Gavin Mak Tested-by: Mike Frysinger Commit-Queue: Mike Frysinger --- .isort.cfg | 2 +- completion.bash | 2 +- git_ssh | 1 - git_trace2_event_log.py | 16 ++++++++++++++++ main.py | 1 - pyproject.toml | 2 +- repo | 1 - run_tests | 2 +- setup.py | 4 ++-- tests/conftest.py | 2 +- tests/test_error.py | 2 +- tests/test_git_command.py | 2 +- tests/test_platform_utils.py | 2 +- tests/test_repo_trace.py | 2 +- tests/test_ssh.py | 2 +- tests/test_update_manpages.py | 2 +- tox.ini | 2 +- 17 files changed, 30 insertions(+), 17 deletions(-) diff --git a/.isort.cfg b/.isort.cfg index bc47b6144..dceb78fc5 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -1,4 +1,4 @@ -# Copyright 2023 The Android Open Source Project +# Copyright (C) 2023 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/completion.bash b/completion.bash index 09291d5c4..7f8dbeaf4 100644 --- a/completion.bash +++ b/completion.bash @@ -1,4 +1,4 @@ -# Copyright 2021 The Android Open Source Project +# Copyright (C) 2021 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/git_ssh b/git_ssh index ef840e9b0..8b2507e1e 100755 --- a/git_ssh +++ b/git_ssh @@ -1,5 +1,4 @@ #!/bin/sh -# # Copyright (C) 2009 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/git_trace2_event_log.py b/git_trace2_event_log.py index 57edee4d3..d7d5cbc21 100644 --- a/git_trace2_event_log.py +++ b/git_trace2_event_log.py @@ -1,3 +1,19 @@ +# Copyright (C) 2020 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Event logging in the git trace2 EVENT format.""" + from git_command import GetEventTargetPath from git_command import RepoSourceVersion from git_trace2_event_log_base import BaseEventLog diff --git a/main.py b/main.py index 707b74ad2..424ad91ca 100755 --- a/main.py +++ b/main.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# # Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pyproject.toml b/pyproject.toml index 6a6a583af..ffeab4b3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,4 @@ -# Copyright 2023 The Android Open Source Project +# Copyright (C) 2023 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/repo b/repo index 2526ab03f..ee3a5b79b 100755 --- a/repo +++ b/repo @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# # Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/run_tests b/run_tests index 9a8fad3bc..4720ac20c 100755 --- a/run_tests +++ b/run_tests @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright 2019 The Android Open Source Project +# Copyright (C) 2019 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/setup.py b/setup.py index dca44ade1..77de5cadb 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 -# Copyright 2019 The Android Open Source Project +# Copyright (C) 2019 The Android Open Source Project # -# Licensed under the Apache License, Version 2.0 (the 'License"); +# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # diff --git a/tests/conftest.py b/tests/conftest.py index 938051b3c..a13edd7af 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,4 @@ -# Copyright 2022 The Android Open Source Project +# Copyright (C) 2022 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/test_error.py b/tests/test_error.py index a74ed2d73..a0ff32c31 100644 --- a/tests/test_error.py +++ b/tests/test_error.py @@ -1,4 +1,4 @@ -# Copyright 2021 The Android Open Source Project +# Copyright (C) 2021 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/test_git_command.py b/tests/test_git_command.py index 16494499a..5bdaca546 100644 --- a/tests/test_git_command.py +++ b/tests/test_git_command.py @@ -1,4 +1,4 @@ -# Copyright 2019 The Android Open Source Project +# Copyright (C) 2019 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/test_platform_utils.py b/tests/test_platform_utils.py index 7a42de015..aab8a52ab 100644 --- a/tests/test_platform_utils.py +++ b/tests/test_platform_utils.py @@ -1,4 +1,4 @@ -# Copyright 2021 The Android Open Source Project +# Copyright (C) 2021 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/test_repo_trace.py b/tests/test_repo_trace.py index e4aeb5de8..2ea341025 100644 --- a/tests/test_repo_trace.py +++ b/tests/test_repo_trace.py @@ -1,4 +1,4 @@ -# Copyright 2022 The Android Open Source Project +# Copyright (C) 2022 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/test_ssh.py b/tests/test_ssh.py index d74f7fe8b..a15c0b5fe 100644 --- a/tests/test_ssh.py +++ b/tests/test_ssh.py @@ -1,4 +1,4 @@ -# Copyright 2019 The Android Open Source Project +# Copyright (C) 2019 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/test_update_manpages.py b/tests/test_update_manpages.py index 12b19ec48..06e5d3f5f 100644 --- a/tests/test_update_manpages.py +++ b/tests/test_update_manpages.py @@ -1,4 +1,4 @@ -# Copyright 2022 The Android Open Source Project +# Copyright (C) 2022 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tox.ini b/tox.ini index 2847f2ac3..55c0de8ca 100644 --- a/tox.ini +++ b/tox.ini @@ -1,4 +1,4 @@ -# Copyright 2019 The Android Open Source Project +# Copyright (C) 2019 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.