Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommend using set/unset gitattributes (vs. true/false strings) #4624

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Use the `linguist-vendored` attribute to vendor or un-vendor paths:

```gitattributes
special-vendored-path/* linguist-vendored
jquery.js linguist-vendored=false
jquery.js -linguist-vendored
```

#### Documentation
Expand All @@ -202,7 +202,7 @@ Use the `linguist-documentation` attribute to mark or unmark paths as documentat

```gitattributes
project-docs/* linguist-documentation
docs/formatter.rb linguist-documentation=false
docs/formatter.rb -linguist-documentation
```

#### Generated code
Expand All @@ -215,7 +215,7 @@ As an added bonus, unlike vendored and documentation files, these files are supp
Use the `linguist-generated` attribute to mark or unmark paths as generated.

```gitattributes
Api.elm linguist-generated=true
Api.elm linguist-generated
```

#### Detectable
Expand All @@ -226,9 +226,9 @@ Languages of a different type (as defined in [`languages.yml`](/lib/linguist/lan
Use the `linguist-detectable` attribute to mark or unmark paths as detectable:

```gitattributes
*.kicad_pcb linguist-detectable=true
*.sch linguist-detectable=true
tools/export_bom.py linguist-detectable=false
*.kicad_pcb linguist-detectable
*.sch linguist-detectable
tools/export_bom.py -linguist-detectable
```

### Using Emacs or Vim modelines
Expand Down