Set execute bit on files if and only if they begin with (#!). (#7347)
* Set execute bit on files if and only if they begin with (#!). Git only tracks the 'x' (executable) bit on each file. Prior to this CL, our files were a random mix of executable and non-executable. This change imposes some order by making files executable if and only if they have shebang (#!) lines at the beginning. We don't have any executable binaries checked into the repo, so we shouldn't need to worry about that case. * Added fix_permissions.sh script to set +x iff a file begins with (#!).
This commit is contained in:
parent
e667bf6eaa
commit
c649397029
0
benchmarks/python/py_benchmark.py
Executable file → Normal file
0
benchmarks/python/py_benchmark.py
Executable file → Normal file
0
benchmarks/util/result_parser.py
Executable file → Normal file
0
benchmarks/util/result_parser.py
Executable file → Normal file
0
benchmarks/util/result_uploader.py
Executable file → Normal file
0
benchmarks/util/result_uploader.py
Executable file → Normal file
0
conformance/conformance_php.php
Executable file → Normal file
0
conformance/conformance_php.php
Executable file → Normal file
0
conformance/text_format_failure_list_java.txt
Executable file → Normal file
0
conformance/text_format_failure_list_java.txt
Executable file → Normal file
0
csharp/install_dotnet_sdk.ps1
Normal file → Executable file
0
csharp/install_dotnet_sdk.ps1
Normal file → Executable file
0
examples/README.md
Executable file → Normal file
0
examples/README.md
Executable file → Normal file
8
fix_permissions.sh
Executable file
8
fix_permissions.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
for file in $(find . -type f); do
|
||||||
|
if [ "$(head -c 2 $file)" == "#!" ]; then
|
||||||
|
chmod u+x $file
|
||||||
|
else
|
||||||
|
chmod a-x $file
|
||||||
|
fi
|
||||||
|
done
|
0
java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ArrayDecoders.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ArrayDecoders.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/BinaryReader.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/BinaryReader.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/BinaryWriter.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/BinaryWriter.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/BufferAllocator.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/BufferAllocator.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/CodedInputStreamReader.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/CodedInputStreamReader.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/CodedOutputStreamWriter.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/CodedOutputStreamWriter.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/DescriptorMessageInfoFactory.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/DescriptorMessageInfoFactory.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ExtensionSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ExtensionSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ExtensionSchemaFull.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ExtensionSchemaFull.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ExtensionSchemaLite.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ExtensionSchemaLite.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ExtensionSchemas.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ExtensionSchemas.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/FieldInfo.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/FieldInfo.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/FieldType.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/FieldType.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/GeneratedMessageInfoFactory.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/GeneratedMessageInfoFactory.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/JavaType.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/JavaType.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ListFieldSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ListFieldSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ManifestSchemaFactory.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ManifestSchemaFactory.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MapFieldSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MapFieldSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MapFieldSchemaFull.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MapFieldSchemaFull.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MapFieldSchemaLite.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MapFieldSchemaLite.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MapFieldSchemas.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MapFieldSchemas.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MessageInfo.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MessageInfo.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MessageInfoFactory.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MessageInfoFactory.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MessageSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MessageSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MessageSetSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/MessageSetSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/NewInstanceSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/NewInstanceSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/NewInstanceSchemaFull.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/NewInstanceSchemaFull.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/NewInstanceSchemaLite.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/NewInstanceSchemaLite.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/NewInstanceSchemas.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/NewInstanceSchemas.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/OneofInfo.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/OneofInfo.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ProtoSyntax.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ProtoSyntax.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/Protobuf.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/Protobuf.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ProtobufLists.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/ProtobufLists.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/RawMessageInfo.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/RawMessageInfo.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/Reader.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/Reader.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/Schema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/Schema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/SchemaFactory.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/SchemaFactory.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/SchemaUtil.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/SchemaUtil.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/StructuralMessageInfo.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/StructuralMessageInfo.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/TypeRegistry.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/TypeRegistry.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/UnknownFieldSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/UnknownFieldSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/UnknownFieldSetLiteSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/UnknownFieldSetLiteSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/UnknownFieldSetSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/UnknownFieldSetSchema.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/Writer.java
Executable file → Normal file
0
java/core/src/main/java/com/google/protobuf/Writer.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/AbstractProto2LiteSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/AbstractProto2LiteSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/AbstractProto2SchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/AbstractProto2SchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/AbstractProto3LiteSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/AbstractProto3LiteSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/AbstractProto3SchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/AbstractProto3SchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/AbstractSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/AbstractSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/ArrayDecodersTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/ArrayDecodersTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/BinaryProtocolTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/BinaryProtocolTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/CachedFieldSizeTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/CachedFieldSizeTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/CodedAdapterTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/CodedAdapterTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/ExperimentalMessageFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/ExperimentalMessageFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/ExperimentalSerializationUtil.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/ExperimentalSerializationUtil.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/ExperimentalTestDataProvider.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/ExperimentalTestDataProvider.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/MapLiteTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/MapLiteTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/PackedFieldTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/PackedFieldTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/ParserLiteTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/ParserLiteTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2ExtensionLookupSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2ExtensionLookupSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2LiteSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2LiteSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2MessageFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2MessageFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2MessageInfoFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2MessageInfoFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2MessageLiteFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2MessageLiteFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2SchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2SchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2UnknownEnumValueTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto2UnknownEnumValueTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3LiteSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3LiteSchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3MessageFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3MessageFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3MessageInfoFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3MessageInfoFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3MessageLiteFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3MessageLiteFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3MessageLiteInfoFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3MessageLiteInfoFactory.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3SchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Proto3SchemaTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/TestSchemas.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/TestSchemas.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/TestSchemasLite.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/TestSchemasLite.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/TypeRegistryTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/TypeRegistryTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Utf8Test.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Utf8Test.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Utf8Utils.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/Utf8Utils.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/WireFormatLiteTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/WireFormatLiteTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/WrappersLiteOfMethodTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/WrappersLiteOfMethodTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/WrappersOfMethodTest.java
Executable file → Normal file
0
java/core/src/test/java/com/google/protobuf/WrappersOfMethodTest.java
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/cached_field_size_test.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/cached_field_size_test.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/message_lite_extension_util_test.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/message_lite_extension_util_test.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/packed_field_test.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/packed_field_test.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/proto2_message.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/proto2_message.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/proto2_message_lite.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/proto2_message_lite.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/proto3_message.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/proto3_message.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/proto3_message_lite.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/proto3_message_lite.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/wrappers_test.proto
Executable file → Normal file
0
java/core/src/test/proto/com/google/protobuf/wrappers_test.proto
Executable file → Normal file
0
java/lite/proguard.pgcfg
Executable file → Normal file
0
java/lite/proguard.pgcfg
Executable file → Normal file
0
java/lite/src/test/java/com/google/protobuf/LiteTest.java
Executable file → Normal file
0
java/lite/src/test/java/com/google/protobuf/LiteTest.java
Executable file → Normal file
0
java/lite/src/test/java/com/google/protobuf/Proto2MessageLiteInfoFactory.java
Executable file → Normal file
0
java/lite/src/test/java/com/google/protobuf/Proto2MessageLiteInfoFactory.java
Executable file → Normal file
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user