This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-swift.git


The following commit(s) were added to refs/heads/main by this push:
     new f02f9d0  chore: Mark generated sources as linguist-generated (#206)
f02f9d0 is described below

commit f02f9d0ed15ff57c6cb912d089ca176178939113
Author: Siddharth Pugalia <[email protected]>
AuthorDate: Sun Nov 1 19:18:04 2026 +0530

    chore: Mark generated sources as linguist-generated (#206)
    
    ## What's Changed
    
    Add a `.gitattributes` file that marks the committed generated sources
    as `linguist-generated`:
    
    - FlatBuffers: `Sources/Arrow/*_generated.swift`
    - Protocol Buffers/gRPC: `Sources/ArrowFlight/*.pb.swift` and
    `Sources/ArrowFlight/*.grpc.swift`
    
    GitHub doesn't detect these files as generated on its own because they
    start with the ASF license header. With this attribute, GitHub collapses
    their diffs in pull requests by default so that hand-written changes are
    easier to review, and excludes them from the repository's language
    statistics. The generated files can still be expanded when needed.
    
    The files themselves are unchanged.
    
    Closes #203.
---
 .gitattributes | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..c48d248
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,22 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Generated sources. GitHub collapses their diffs in pull requests and
+# excludes them from the repository's language statistics.
+Sources/Arrow/*_generated.swift linguist-generated=true
+Sources/ArrowFlight/*.pb.swift linguist-generated=true
+Sources/ArrowFlight/*.grpc.swift linguist-generated=true

Reply via email to