Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 746 Bytes

File metadata and controls

25 lines (18 loc) · 746 Bytes

gitattributes-section

Manages a named section within the repository-root .gitattributes file.

Settings

  • name: Required non-empty section name used in the managed marker.
  • text: Required exact .gitattributes text to place inside the managed section.

Behavior

If .gitattributes does not exist, the convention creates it with the managed section. If the named section already exists, the convention replaces only that section. Other .gitattributes content is preserved.

Example

conventions:
  - path: Faithlife/CodingGuidelines/conventions/gitattributes-section
    commit:
      message: Update .gitattributes
    settings:
      name: generated-files
      text: |
        *.g.* linguist-generated=true