mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
docs: update lockfile diff instructions (#5275)
This commit is contained in:
committed by
GitHub
parent
c3455c0cee
commit
687e31dc3a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user