docs: update lockfile diff instructions (#5275)

This commit is contained in:
Guilherme J. Tramontina
2023-09-14 03:27:32 +10:00
committed by GitHub
parent c3455c0cee
commit 687e31dc3a

View File

@@ -10,16 +10,20 @@ Run `bun install -y` to generate a Yarn-compatible `yarn.lock` (v1) that can be
#### How do I `git diff` Bun's lockfile?
To add to the global gitattributes file:
Add the following to your local or global `.gitattributes` file:
To enable diffing in the local gitattributes file (per-repository):
```
*.lockb binary diff=lockb
```
Then add the following to you local git config with:
```sh
$ git config diff.lockb.textconv bun
$ git config diff.lockb.binary true
```
To enable diffing in the global gitattributes file (system-wide), use the `--global` option:
Or to your global git config (system-wide) with the `--global` option:
```sh
$ git config --global diff.lockb.textconv bun