1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-07-29 12:07:47 +00:00

blog.gitignore: update gitignore example

This commit is contained in:
RGBCube 2025-07-21 18:19:49 +03:00
parent 2f0551c767
commit 16601d0ffb
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
2 changed files with 10 additions and 6 deletions

View file

@ -98,18 +98,21 @@ You change your gitignore to this:
!.gitignore
!src/*.rs
# whitelist `src` directories and their children, regardless of place
!src/**/
!src/**/*.rs
!Cargo.{toml,lock}
!pysrc/*.py
# whitelist root `pysrc` directory
!/pysrc/*.py
!pyproject.toml
!poetry.lock
!cmd/*.go
!/cmd/*.go
!main.go
!go.{mod,sum}
!docs/*.md
!/docs/*.md
```
Now, nobody can accidentally commit undesired files, as git automatically

View file

@ -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
> produce the JSON output on.
Unix is a mess. But it's still cool we can have `tree` output structured data
using `STDDATA_FD`:
Assuming anything about the users environment is and will always be a mistake.
But it's still cool we can have `tree` output structured data using
`STDDATA_FD`:
```json
> STDDATA_FD=1 tree