mirror of
https://github.com/RGBCube/Site
synced 2025-07-29 20:17:46 +00:00
blog.gitignore: update gitignore example
This commit is contained in:
parent
2f0551c767
commit
16601d0ffb
2 changed files with 10 additions and 6 deletions
|
@ -98,18 +98,21 @@ You change your gitignore to this:
|
||||||
|
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
|
||||||
!src/*.rs
|
# whitelist `src` directories and their children, regardless of place
|
||||||
|
!src/**/
|
||||||
|
!src/**/*.rs
|
||||||
!Cargo.{toml,lock}
|
!Cargo.{toml,lock}
|
||||||
|
|
||||||
!pysrc/*.py
|
# whitelist root `pysrc` directory
|
||||||
|
!/pysrc/*.py
|
||||||
!pyproject.toml
|
!pyproject.toml
|
||||||
!poetry.lock
|
!poetry.lock
|
||||||
|
|
||||||
!cmd/*.go
|
!/cmd/*.go
|
||||||
!main.go
|
!main.go
|
||||||
!go.{mod,sum}
|
!go.{mod,sum}
|
||||||
|
|
||||||
!docs/*.md
|
!/docs/*.md
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, nobody can accidentally commit undesired files, as git automatically
|
Now, nobody can accidentally commit undesired files, as git automatically
|
||||||
|
|
|
@ -26,8 +26,9 @@ Oops (from the `tree`version 2.0.2 release notes):
|
||||||
> the environment variable STDDATA_FD is present or set to the descriptor to
|
> the environment variable STDDATA_FD is present or set to the descriptor to
|
||||||
> produce the JSON output on.
|
> produce the JSON output on.
|
||||||
|
|
||||||
Unix is a mess. But it's still cool we can have `tree` output structured data
|
Assuming anything about the users environment is and will always be a mistake.
|
||||||
using `STDDATA_FD`:
|
But it's still cool we can have `tree` output structured data using
|
||||||
|
`STDDATA_FD`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
> STDDATA_FD=1 tree
|
> STDDATA_FD=1 tree
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue