Formatting

This commit is contained in:
Arfon Smith
2014-10-16 20:56:21 -05:00
parent 63661dfc6e
commit 843e196f00

View File

@@ -148,12 +148,12 @@ For example, the following repository has a large Javascript file in an unusual
``` ```
> cat .gitattributes > cat .gitattributes
special-vendored-path/* linguist-vendored=true special-vendored-path/* linguist-vendored=true
```
> irb ```ruby
> require 'linguist' require 'linguist'
> repo = Rugged::Repository.new('.') #to read .gitattributes data we need the git repository repo = Rugged::Repository.new('.') #to read .gitattributes data we need the git repository
> sha = repo.head.target_id #current commit sha = repo.head.target_id #current commit
> blob = Linguist::LazyBlob.new(repo, sha, 'special-vendored-path/massive-js-file.js').vendored? blob = Linguist::LazyBlob.new(repo, sha, 'special-vendored-path/massive-js-file.js').vendored?
=> true => true
``` ```