diff options
author | Mike Frysinger <vapier@google.com> | 2019-06-13 02:30:51 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2019-06-13 14:30:52 +0000 |
commit | f601376e13e6beca7ab8d660e00d6c14714f305f (patch) | |
tree | beeeb25f4ff9fda3ff494ca3a39aca347d237b13 | |
parent | 31067c0ac583af2304ffe52c11df8b14c6162502 (diff) | |
download | git-repo-f601376e13e6beca7ab8d660e00d6c14714f305f.tar.gz |
set default file encoding to utf-8
There's no reason to support any other encoding in these files.
This only affects the files themselves and not streams they open.
Bug: https://crbug.com/gerrit/10418
Change-Id: I053cb40cd3666ce5c8a0689b9dd938f24ca765bf
50 files changed, 53 insertions, 0 deletions
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/event_log.py b/event_log.py index 0696df50..315d752d 100644 --- a/event_log.py +++ b/event_log.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2017 The Android Open Source Project | 3 | # Copyright (C) 2017 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/git_command.py b/git_command.py index b1e9e172..1807b55e 100644 --- a/git_command.py +++ b/git_command.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/git_config.py b/git_config.py index aac08855..ca1282a3 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/git_refs.py b/git_refs.py index e0a85d7a..3187783a 100644 --- a/git_refs.py +++ b/git_refs.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2009 The Android Open Source Project | 3 | # Copyright (C) 2009 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/gitc_utils.py b/gitc_utils.py index f49f7be6..b47e181c 100644 --- a/gitc_utils.py +++ b/gitc_utils.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2015 The Android Open Source Project | 3 | # Copyright (C) 2015 The Android Open Source Project |
3 | # | 4 | # |
@@ -1,4 +1,5 @@ | |||
1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
2 | # -*- coding:utf-8 -*- | ||
2 | # | 3 | # |
3 | # Copyright (C) 2008 The Android Open Source Project | 4 | # Copyright (C) 2008 The Android Open Source Project |
4 | # | 5 | # |
diff --git a/manifest_xml.py b/manifest_xml.py index 23b4fb74..96286301 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/platform_utils.py b/platform_utils.py index 8af25d21..77e8fdf5 100644 --- a/platform_utils.py +++ b/platform_utils.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2016 The Android Open Source Project | 3 | # Copyright (C) 2016 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/platform_utils_win32.py b/platform_utils_win32.py index 7ab2bf04..31e00c17 100644 --- a/platform_utils_win32.py +++ b/platform_utils_win32.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2016 The Android Open Source Project | 3 | # Copyright (C) 2016 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/progress.py b/progress.py index 0dd5d1a8..64316959 100644 --- a/progress.py +++ b/progress.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2009 The Android Open Source Project | 3 | # Copyright (C) 2009 The Android Open Source Project |
3 | # | 4 | # |
@@ -1,3 +1,5 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
2 | # | ||
1 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
2 | # | 4 | # |
3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
diff --git a/pyversion.py b/pyversion.py index 5b348d91..f6082408 100644 --- a/pyversion.py +++ b/pyversion.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2013 The Android Open Source Project | 3 | # Copyright (C) 2013 The Android Open Source Project |
3 | # | 4 | # |
@@ -1,4 +1,5 @@ | |||
1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
2 | # -*- coding:utf-8 -*- | ||
2 | 3 | ||
3 | # repo default configuration | 4 | # repo default configuration |
4 | # | 5 | # |
diff --git a/subcmds/__init__.py b/subcmds/__init__.py index 84efb4de..27341038 100644 --- a/subcmds/__init__.py +++ b/subcmds/__init__.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/abandon.py b/subcmds/abandon.py index f1c2a839..319262bd 100644 --- a/subcmds/abandon.py +++ b/subcmds/abandon.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/branches.py b/subcmds/branches.py index fa1dff67..fb60d7de 100644 --- a/subcmds/branches.py +++ b/subcmds/branches.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2009 The Android Open Source Project | 3 | # Copyright (C) 2009 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/checkout.py b/subcmds/checkout.py index cbbca106..51ac4833 100644 --- a/subcmds/checkout.py +++ b/subcmds/checkout.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2009 The Android Open Source Project | 3 | # Copyright (C) 2009 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/cherry_pick.py b/subcmds/cherry_pick.py index 1f7dffdc..43215f91 100644 --- a/subcmds/cherry_pick.py +++ b/subcmds/cherry_pick.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2010 The Android Open Source Project | 3 | # Copyright (C) 2010 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/diff.py b/subcmds/diff.py index f233f690..1f3abd86 100644 --- a/subcmds/diff.py +++ b/subcmds/diff.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/diffmanifests.py b/subcmds/diffmanifests.py index a1e823cd..cae776a7 100644 --- a/subcmds/diffmanifests.py +++ b/subcmds/diffmanifests.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2014 The Android Open Source Project | 3 | # Copyright (C) 2014 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/download.py b/subcmds/download.py index dba70ffd..f746bc23 100755 --- a/subcmds/download.py +++ b/subcmds/download.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/forall.py b/subcmds/forall.py index 6fb16f16..9454ef6c 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/gitc_delete.py b/subcmds/gitc_delete.py index 4d8cd8c2..e5214b8e 100644 --- a/subcmds/gitc_delete.py +++ b/subcmds/gitc_delete.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2015 The Android Open Source Project | 3 | # Copyright (C) 2015 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/gitc_init.py b/subcmds/gitc_init.py index 2726eaec..df7b2587 100644 --- a/subcmds/gitc_init.py +++ b/subcmds/gitc_init.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2015 The Android Open Source Project | 3 | # Copyright (C) 2015 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/grep.py b/subcmds/grep.py index 1157355d..a588a78e 100644 --- a/subcmds/grep.py +++ b/subcmds/grep.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2009 The Android Open Source Project | 3 | # Copyright (C) 2009 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/help.py b/subcmds/help.py index 67a225e5..90c12443 100644 --- a/subcmds/help.py +++ b/subcmds/help.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/info.py b/subcmds/info.py index 2fff3acc..be5a8f2a 100644 --- a/subcmds/info.py +++ b/subcmds/info.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2012 The Android Open Source Project | 3 | # Copyright (C) 2012 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/init.py b/subcmds/init.py index 632d1a33..6c8b1ddc 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/list.py b/subcmds/list.py index ca51c5f7..961b1956 100644 --- a/subcmds/list.py +++ b/subcmds/list.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2011 The Android Open Source Project | 3 | # Copyright (C) 2011 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/manifest.py b/subcmds/manifest.py index 4a5228ba..07fa323a 100644 --- a/subcmds/manifest.py +++ b/subcmds/manifest.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2009 The Android Open Source Project | 3 | # Copyright (C) 2009 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/overview.py b/subcmds/overview.py index eed8cf20..08b58a6c 100644 --- a/subcmds/overview.py +++ b/subcmds/overview.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2012 The Android Open Source Project | 3 | # Copyright (C) 2012 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/prune.py b/subcmds/prune.py index 39c571a4..dc8b8c9d 100644 --- a/subcmds/prune.py +++ b/subcmds/prune.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/rebase.py b/subcmds/rebase.py index 74796970..9464091f 100644 --- a/subcmds/rebase.py +++ b/subcmds/rebase.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2010 The Android Open Source Project | 3 | # Copyright (C) 2010 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/selfupdate.py b/subcmds/selfupdate.py index d12e08d0..a8a09b64 100644 --- a/subcmds/selfupdate.py +++ b/subcmds/selfupdate.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2009 The Android Open Source Project | 3 | # Copyright (C) 2009 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/smartsync.py b/subcmds/smartsync.py index e164859f..675b9834 100644 --- a/subcmds/smartsync.py +++ b/subcmds/smartsync.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2010 The Android Open Source Project | 3 | # Copyright (C) 2010 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/stage.py b/subcmds/stage.py index 9d354268..aeb49513 100644 --- a/subcmds/stage.py +++ b/subcmds/stage.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/start.py b/subcmds/start.py index c3ec303e..0c60d78c 100644 --- a/subcmds/start.py +++ b/subcmds/start.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/status.py b/subcmds/status.py index 773f22d4..3939c45b 100644 --- a/subcmds/status.py +++ b/subcmds/status.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/sync.py b/subcmds/sync.py index ec7337aa..2e92584e 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/upload.py b/subcmds/upload.py index acb9d7f0..e7e5b1bf 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/subcmds/version.py b/subcmds/version.py index 01b7fd8c..8b48bcfb 100644 --- a/subcmds/version.py +++ b/subcmds/version.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2009 The Android Open Source Project | 3 | # Copyright (C) 2009 The Android Open Source Project |
3 | # | 4 | # |
diff --git a/tests/test_git_config.py b/tests/test_git_config.py index 3d4b9970..8773b0b9 100644 --- a/tests/test_git_config.py +++ b/tests/test_git_config.py | |||
@@ -1,3 +1,5 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
2 | |||
1 | import os | 3 | import os |
2 | import unittest | 4 | import unittest |
3 | 5 | ||
diff --git a/tests/test_wrapper.py b/tests/test_wrapper.py index fb32e38a..d20641b9 100644 --- a/tests/test_wrapper.py +++ b/tests/test_wrapper.py | |||
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2015 The Android Open Source Project | 3 | # Copyright (C) 2015 The Android Open Source Project |
3 | # | 4 | # |
@@ -1,3 +1,4 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
1 | # | 2 | # |
2 | # Copyright (C) 2008 The Android Open Source Project | 3 | # Copyright (C) 2008 The Android Open Source Project |
3 | # | 4 | # |
@@ -1,3 +1,5 @@ | |||
1 | # -*- coding:utf-8 -*- | ||
2 | # | ||
1 | # Copyright (C) 2014 The Android Open Source Project | 3 | # Copyright (C) 2014 The Android Open Source Project |
2 | # | 4 | # |
3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |