You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ch...@apache.org on 2023/05/11 22:03:01 UTC

[buildstream] branch chandan/yaml-attributes created (now 1f15f01ef)

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

chandan pushed a change to branch chandan/yaml-attributes
in repository https://gitbox.apache.org/repos/asf/buildstream.git


      at 1f15f01ef Add .gitattributes to syntax highlight bst files as yaml

This branch includes the following new commits:

     new 1f15f01ef Add .gitattributes to syntax highlight bst files as yaml

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[buildstream] 01/01: Add .gitattributes to syntax highlight bst files as yaml

Posted by ch...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

chandan pushed a commit to branch chandan/yaml-attributes
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 1f15f01efa7f4a87c21b179ad4c82be73f5bbdd3
Author: Chandan Singh <ch...@chandansingh.net>
AuthorDate: Thu May 11 15:02:55 2023 -0700

    Add .gitattributes to syntax highlight bst files as yaml
    
    Add a `.gitattributes` file to suggest GitHub Linguist to treat
    `.bst` files and `project.conf` file anywhere in the project as
    YAML for the purposes of syntax highlighting.
    
    If we agree with this change, we can also add something in our
    documentation to suggest users to add something similar to
    their projects. Although that suggestion will depend on the Git
    hosting service used. GitHub and GitLab both support overrides
    via `.gitattributes` file but use different keywords. See:
    
    * https://github.com/github-linguist/linguist/blob/master/docs/overrides.md#using-gitattributes
    * https://docs.gitlab.com/ee/user/project/highlighting.html#override-syntax-highlighting-for-a-file-type
---
 tests/.gitattributes | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/.gitattributes b/tests/.gitattributes
new file mode 100644
index 000000000..16fa56eab
--- /dev/null
+++ b/tests/.gitattributes
@@ -0,0 +1,2 @@
+*.bst linguist-language=yaml
+project.conf linguist-language=yaml