README.md (linguist-7.23.0) | : | README.md (linguist-7.24.0) | ||
---|---|---|---|---|
skipping to change at line 97 | skipping to change at line 97 | |||
66.84% 264519 Ruby | 66.84% 264519 Ruby | |||
24.68% 97685 C | 24.68% 97685 C | |||
6.57% 25999 Go | 6.57% 25999 Go | |||
1.29% 5098 Lex | 1.29% 5098 Lex | |||
0.32% 1257 Shell | 0.32% 1257 Shell | |||
0.31% 1212 Dockerfile | 0.31% 1212 Dockerfile | |||
``` | ``` | |||
#### Additional options | #### Additional options | |||
##### `--rev REV` | ||||
The `--rev REV` flag will change the git revision being analyzed to any [gitrevi | ||||
sions(1)](https://git-scm.com/docs/gitrevisions#_specifying_revisions) compatibl | ||||
e revision you specify. | ||||
This is useful to analyze the makeup of a repo as of a certain tag, or in a cert | ||||
ain branch. | ||||
For example, here is the popular [Jekyll open source project](https://github.com | ||||
/jekyll/jekyll). | ||||
```console | ||||
$ github-linguist jekyll | ||||
70.64% 709959 Ruby | ||||
23.04% 231555 Gherkin | ||||
3.80% 38178 JavaScript | ||||
1.19% 11943 HTML | ||||
0.79% 7900 Shell | ||||
0.23% 2279 Dockerfile | ||||
0.13% 1344 Earthly | ||||
0.10% 1019 CSS | ||||
0.06% 606 SCSS | ||||
0.02% 234 CoffeeScript | ||||
0.01% 90 Hack | ||||
``` | ||||
And here is Jekyll's published website, from the gh-pages branch inside their re | ||||
pository. | ||||
```console | ||||
$ github-linguist jekyll --rev origin/gh-pages | ||||
100.00% 2568354 HTML | ||||
``` | ||||
##### `--breakdown` | ##### `--breakdown` | |||
The `--breakdown` or `-b` flag will additionally show the breakdown of files by language. | The `--breakdown` or `-b` flag will additionally show the breakdown of files by language. | |||
You can try running `github-linguist` on the root directory in this repository i tself: | You can try running `github-linguist` on the root directory in this repository i tself: | |||
```console | ```console | |||
$ github-linguist --breakdown | $ github-linguist --breakdown | |||
66.84% 264519 Ruby | 66.84% 264519 Ruby | |||
24.68% 97685 C | 24.68% 97685 C | |||
6.57% 25999 Go | 6.57% 25999 Go | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 34 lines changed or added |