diff options
| author | Mike Frysinger <vapier@google.com> | 2025-08-21 10:25:25 -0400 |
|---|---|---|
| committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2025-08-21 11:04:41 -0700 |
| commit | 5ed12ec81dbb1b2e612fe21f7579295c8d8cab33 (patch) | |
| tree | 738504d56f503d4534054d97ab2bf3128fec2c8d | |
| parent | 58a59fdfbca47f6a6d3fd738ccc5f978d554209f (diff) | |
| download | git-repo-5ed12ec81dbb1b2e612fe21f7579295c8d8cab33.tar.gz | |
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 <gavinmak@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Mike Frysinger <vapier@google.com>
| -rw-r--r-- | .isort.cfg | 2 | ||||
| -rw-r--r-- | completion.bash | 2 | ||||
| -rwxr-xr-x | git_ssh | 1 | ||||
| -rw-r--r-- | git_trace2_event_log.py | 16 | ||||
| -rwxr-xr-x | main.py | 1 | ||||
| -rw-r--r-- | pyproject.toml | 2 | ||||
| -rwxr-xr-x | repo | 1 | ||||
| -rwxr-xr-x | run_tests | 2 | ||||
| -rwxr-xr-x | setup.py | 4 | ||||
| -rw-r--r-- | tests/conftest.py | 2 | ||||
| -rw-r--r-- | tests/test_error.py | 2 | ||||
| -rw-r--r-- | tests/test_git_command.py | 2 | ||||
| -rw-r--r-- | tests/test_platform_utils.py | 2 | ||||
| -rw-r--r-- | tests/test_repo_trace.py | 2 | ||||
| -rw-r--r-- | tests/test_ssh.py | 2 | ||||
| -rw-r--r-- | tests/test_update_manpages.py | 2 | ||||
| -rw-r--r-- | tox.ini | 2 |
17 files changed, 30 insertions, 17 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright 2023 The Android Open Source Project | 1 | # Copyright (C) 2023 The Android Open Source Project |
| 2 | # | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. | 4 | # you may not use this file except in compliance with the License. |
diff --git a/completion.bash b/completion.bash index 09291d5c..7f8dbeaf 100644 --- a/completion.bash +++ b/completion.bash | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright 2021 The Android Open Source Project | 1 | # Copyright (C) 2021 The Android Open Source Project |
| 2 | # | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. | 4 | # you may not use this file except in compliance with the License. |
| @@ -1,5 +1,4 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # | ||
| 3 | # Copyright (C) 2009 The Android Open Source Project | 2 | # Copyright (C) 2009 The Android Open Source Project |
| 4 | # | 3 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); | 4 | # 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 57edee4d..d7d5cbc2 100644 --- a/git_trace2_event_log.py +++ b/git_trace2_event_log.py | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | # Copyright (C) 2020 The Android Open Source Project | ||
| 2 | # | ||
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | # you may not use this file except in compliance with the License. | ||
| 5 | # You may obtain a copy of the License at | ||
| 6 | # | ||
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | # | ||
| 9 | # Unless required by applicable law or agreed to in writing, software | ||
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | # See the License for the specific language governing permissions and | ||
| 13 | # limitations under the License. | ||
| 14 | |||
| 15 | """Event logging in the git trace2 EVENT format.""" | ||
| 16 | |||
| 1 | from git_command import GetEventTargetPath | 17 | from git_command import GetEventTargetPath |
| 2 | from git_command import RepoSourceVersion | 18 | from git_command import RepoSourceVersion |
| 3 | from git_trace2_event_log_base import BaseEventLog | 19 | from git_trace2_event_log_base import BaseEventLog |
| @@ -1,5 +1,4 @@ | |||
| 1 | #!/usr/bin/env python3 | 1 | #!/usr/bin/env python3 |
| 2 | # | ||
| 3 | # Copyright (C) 2008 The Android Open Source Project | 2 | # Copyright (C) 2008 The Android Open Source Project |
| 4 | # | 3 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
diff --git a/pyproject.toml b/pyproject.toml index 6a6a583a..ffeab4b3 100644 --- a/pyproject.toml +++ b/pyproject.toml | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright 2023 The Android Open Source Project | 1 | # Copyright (C) 2023 The Android Open Source Project |
| 2 | # | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. | 4 | # you may not use this file except in compliance with the License. |
| @@ -1,5 +1,4 @@ | |||
| 1 | #!/usr/bin/env python3 | 1 | #!/usr/bin/env python3 |
| 2 | # | ||
| 3 | # Copyright (C) 2008 The Android Open Source Project | 2 | # Copyright (C) 2008 The Android Open Source Project |
| 4 | # | 3 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| @@ -1,5 +1,5 @@ | |||
| 1 | #!/usr/bin/env python3 | 1 | #!/usr/bin/env python3 |
| 2 | # Copyright 2019 The Android Open Source Project | 2 | # Copyright (C) 2019 The Android Open Source Project |
| 3 | # | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. | 5 | # you may not use this file except in compliance with the License. |
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/usr/bin/env python3 | 1 | #!/usr/bin/env python3 |
| 2 | # Copyright 2019 The Android Open Source Project | 2 | # Copyright (C) 2019 The Android Open Source Project |
| 3 | # | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the 'License"); | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. | 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at | 6 | # You may obtain a copy of the License at |
| 7 | # | 7 | # |
diff --git a/tests/conftest.py b/tests/conftest.py index 938051b3..a13edd7a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright 2022 The Android Open Source Project | 1 | # Copyright (C) 2022 The Android Open Source Project |
| 2 | # | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. | 4 | # 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 a74ed2d7..a0ff32c3 100644 --- a/tests/test_error.py +++ b/tests/test_error.py | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright 2021 The Android Open Source Project | 1 | # Copyright (C) 2021 The Android Open Source Project |
| 2 | # | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. | 4 | # 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 16494499..5bdaca54 100644 --- a/tests/test_git_command.py +++ b/tests/test_git_command.py | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright 2019 The Android Open Source Project | 1 | # Copyright (C) 2019 The Android Open Source Project |
| 2 | # | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. | 4 | # 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 7a42de01..aab8a52a 100644 --- a/tests/test_platform_utils.py +++ b/tests/test_platform_utils.py | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright 2021 The Android Open Source Project | 1 | # Copyright (C) 2021 The Android Open Source Project |
| 2 | # | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. | 4 | # 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 e4aeb5de..2ea34102 100644 --- a/tests/test_repo_trace.py +++ b/tests/test_repo_trace.py | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright 2022 The Android Open Source Project | 1 | # Copyright (C) 2022 The Android Open Source Project |
| 2 | # | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. | 4 | # 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 d74f7fe8..a15c0b5f 100644 --- a/tests/test_ssh.py +++ b/tests/test_ssh.py | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright 2019 The Android Open Source Project | 1 | # Copyright (C) 2019 The Android Open Source Project |
| 2 | # | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. | 4 | # 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 12b19ec4..06e5d3f5 100644 --- a/tests/test_update_manpages.py +++ b/tests/test_update_manpages.py | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright 2022 The Android Open Source Project | 1 | # Copyright (C) 2022 The Android Open Source Project |
| 2 | # | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. | 4 | # you may not use this file except in compliance with the License. |
| @@ -1,4 +1,4 @@ | |||
| 1 | # Copyright 2019 The Android Open Source Project | 1 | # Copyright (C) 2019 The Android Open Source Project |
| 2 | # | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. | 4 | # you may not use this file except in compliance with the License. |
