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 (#!).pull/7352/head
parent
e667bf6eaa
commit
c649397029
|
@ -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/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/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/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/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/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/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/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/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/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/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/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/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/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_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_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/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