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
Joshua Haberman 5 years ago committed by GitHub
parent e667bf6eaa
commit c649397029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 0
      benchmarks/python/py_benchmark.py
  2. 0
      benchmarks/util/result_parser.py
  3. 0
      benchmarks/util/result_uploader.py
  4. 0
      conformance/conformance_php.php
  5. 0
      conformance/text_format_failure_list_java.txt
  6. 0
      csharp/install_dotnet_sdk.ps1
  7. 0
      examples/README.md
  8. 8
      fix_permissions.sh
  9. 0
      java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java
  10. 0
      java/core/src/main/java/com/google/protobuf/ArrayDecoders.java
  11. 0
      java/core/src/main/java/com/google/protobuf/BinaryReader.java
  12. 0
      java/core/src/main/java/com/google/protobuf/BinaryWriter.java
  13. 0
      java/core/src/main/java/com/google/protobuf/BufferAllocator.java
  14. 0
      java/core/src/main/java/com/google/protobuf/CodedInputStreamReader.java
  15. 0
      java/core/src/main/java/com/google/protobuf/CodedOutputStreamWriter.java
  16. 0
      java/core/src/main/java/com/google/protobuf/DescriptorMessageInfoFactory.java
  17. 0
      java/core/src/main/java/com/google/protobuf/ExtensionSchema.java
  18. 0
      java/core/src/main/java/com/google/protobuf/ExtensionSchemaFull.java
  19. 0
      java/core/src/main/java/com/google/protobuf/ExtensionSchemaLite.java
  20. 0
      java/core/src/main/java/com/google/protobuf/ExtensionSchemas.java
  21. 0
      java/core/src/main/java/com/google/protobuf/FieldInfo.java
  22. 0
      java/core/src/main/java/com/google/protobuf/FieldType.java
  23. 0
      java/core/src/main/java/com/google/protobuf/GeneratedMessageInfoFactory.java
  24. 0
      java/core/src/main/java/com/google/protobuf/JavaType.java
  25. 0
      java/core/src/main/java/com/google/protobuf/ListFieldSchema.java
  26. 0
      java/core/src/main/java/com/google/protobuf/ManifestSchemaFactory.java
  27. 0
      java/core/src/main/java/com/google/protobuf/MapFieldSchema.java
  28. 0
      java/core/src/main/java/com/google/protobuf/MapFieldSchemaFull.java
  29. 0
      java/core/src/main/java/com/google/protobuf/MapFieldSchemaLite.java
  30. 0
      java/core/src/main/java/com/google/protobuf/MapFieldSchemas.java
  31. 0
      java/core/src/main/java/com/google/protobuf/MessageInfo.java
  32. 0
      java/core/src/main/java/com/google/protobuf/MessageInfoFactory.java
  33. 0
      java/core/src/main/java/com/google/protobuf/MessageSchema.java
  34. 0
      java/core/src/main/java/com/google/protobuf/MessageSetSchema.java
  35. 0
      java/core/src/main/java/com/google/protobuf/NewInstanceSchema.java
  36. 0
      java/core/src/main/java/com/google/protobuf/NewInstanceSchemaFull.java
  37. 0
      java/core/src/main/java/com/google/protobuf/NewInstanceSchemaLite.java
  38. 0
      java/core/src/main/java/com/google/protobuf/NewInstanceSchemas.java
  39. 0
      java/core/src/main/java/com/google/protobuf/OneofInfo.java
  40. 0
      java/core/src/main/java/com/google/protobuf/ProtoSyntax.java
  41. 0
      java/core/src/main/java/com/google/protobuf/Protobuf.java
  42. 0
      java/core/src/main/java/com/google/protobuf/ProtobufLists.java
  43. 0
      java/core/src/main/java/com/google/protobuf/RawMessageInfo.java
  44. 0
      java/core/src/main/java/com/google/protobuf/Reader.java
  45. 0
      java/core/src/main/java/com/google/protobuf/Schema.java
  46. 0
      java/core/src/main/java/com/google/protobuf/SchemaFactory.java
  47. 0
      java/core/src/main/java/com/google/protobuf/SchemaUtil.java
  48. 0
      java/core/src/main/java/com/google/protobuf/StructuralMessageInfo.java
  49. 0
      java/core/src/main/java/com/google/protobuf/TypeRegistry.java
  50. 0
      java/core/src/main/java/com/google/protobuf/UnknownFieldSchema.java
  51. 0
      java/core/src/main/java/com/google/protobuf/UnknownFieldSetLiteSchema.java
  52. 0
      java/core/src/main/java/com/google/protobuf/UnknownFieldSetSchema.java
  53. 0
      java/core/src/main/java/com/google/protobuf/Writer.java
  54. 0
      java/core/src/test/java/com/google/protobuf/AbstractProto2LiteSchemaTest.java
  55. 0
      java/core/src/test/java/com/google/protobuf/AbstractProto2SchemaTest.java
  56. 0
      java/core/src/test/java/com/google/protobuf/AbstractProto3LiteSchemaTest.java
  57. 0
      java/core/src/test/java/com/google/protobuf/AbstractProto3SchemaTest.java
  58. 0
      java/core/src/test/java/com/google/protobuf/AbstractSchemaTest.java
  59. 0
      java/core/src/test/java/com/google/protobuf/ArrayDecodersTest.java
  60. 0
      java/core/src/test/java/com/google/protobuf/BinaryProtocolTest.java
  61. 0
      java/core/src/test/java/com/google/protobuf/CachedFieldSizeTest.java
  62. 0
      java/core/src/test/java/com/google/protobuf/CodedAdapterTest.java
  63. 0
      java/core/src/test/java/com/google/protobuf/ExperimentalMessageFactory.java
  64. 0
      java/core/src/test/java/com/google/protobuf/ExperimentalSerializationUtil.java
  65. 0
      java/core/src/test/java/com/google/protobuf/ExperimentalTestDataProvider.java
  66. 0
      java/core/src/test/java/com/google/protobuf/MapLiteTest.java
  67. 0
      java/core/src/test/java/com/google/protobuf/PackedFieldTest.java
  68. 0
      java/core/src/test/java/com/google/protobuf/ParserLiteTest.java
  69. 0
      java/core/src/test/java/com/google/protobuf/Proto2ExtensionLookupSchemaTest.java
  70. 0
      java/core/src/test/java/com/google/protobuf/Proto2LiteSchemaTest.java
  71. 0
      java/core/src/test/java/com/google/protobuf/Proto2MessageFactory.java
  72. 0
      java/core/src/test/java/com/google/protobuf/Proto2MessageInfoFactory.java
  73. 0
      java/core/src/test/java/com/google/protobuf/Proto2MessageLiteFactory.java
  74. 0
      java/core/src/test/java/com/google/protobuf/Proto2SchemaTest.java
  75. 0
      java/core/src/test/java/com/google/protobuf/Proto2UnknownEnumValueTest.java
  76. 0
      java/core/src/test/java/com/google/protobuf/Proto3LiteSchemaTest.java
  77. 0
      java/core/src/test/java/com/google/protobuf/Proto3MessageFactory.java
  78. 0
      java/core/src/test/java/com/google/protobuf/Proto3MessageInfoFactory.java
  79. 0
      java/core/src/test/java/com/google/protobuf/Proto3MessageLiteFactory.java
  80. 0
      java/core/src/test/java/com/google/protobuf/Proto3MessageLiteInfoFactory.java
  81. 0
      java/core/src/test/java/com/google/protobuf/Proto3SchemaTest.java
  82. 0
      java/core/src/test/java/com/google/protobuf/TestSchemas.java
  83. 0
      java/core/src/test/java/com/google/protobuf/TestSchemasLite.java
  84. 0
      java/core/src/test/java/com/google/protobuf/TypeRegistryTest.java
  85. 0
      java/core/src/test/java/com/google/protobuf/Utf8Test.java
  86. 0
      java/core/src/test/java/com/google/protobuf/Utf8Utils.java
  87. 0
      java/core/src/test/java/com/google/protobuf/WireFormatLiteTest.java
  88. 0
      java/core/src/test/java/com/google/protobuf/WrappersLiteOfMethodTest.java
  89. 0
      java/core/src/test/java/com/google/protobuf/WrappersOfMethodTest.java
  90. 0
      java/core/src/test/proto/com/google/protobuf/cached_field_size_test.proto
  91. 0
      java/core/src/test/proto/com/google/protobuf/message_lite_extension_util_test.proto
  92. 0
      java/core/src/test/proto/com/google/protobuf/packed_field_test.proto
  93. 0
      java/core/src/test/proto/com/google/protobuf/proto2_message.proto
  94. 0
      java/core/src/test/proto/com/google/protobuf/proto2_message_lite.proto
  95. 0
      java/core/src/test/proto/com/google/protobuf/proto3_message.proto
  96. 0
      java/core/src/test/proto/com/google/protobuf/proto3_message_lite.proto
  97. 0
      java/core/src/test/proto/com/google/protobuf/wrappers_test.proto
  98. 0
      java/lite/proguard.pgcfg
  99. 0
      java/lite/src/test/java/com/google/protobuf/LiteTest.java
  100. 0
      java/lite/src/test/java/com/google/protobuf/Proto2MessageLiteInfoFactory.java
  101. Some files were not shown because too many files have changed in this diff Show More

@ -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

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save