mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-18 02:30:55 +01:00
Add reference to batdiff
This commit is contained in:
parent
c747ac181d
commit
dade4cc6f3
@ -136,8 +136,11 @@ git show v0.6.0:src/main.rs | bat -l rs
|
|||||||
You can combine `bat` with `git diff` to view lines around code changes with proper syntax
|
You can combine `bat` with `git diff` to view lines around code changes with proper syntax
|
||||||
highlighting:
|
highlighting:
|
||||||
```bash
|
```bash
|
||||||
|
batdiff() {
|
||||||
git diff --name-only --diff-filter=d | xargs bat --diff
|
git diff --name-only --diff-filter=d | xargs bat --diff
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
If you prefer to use this as a separate tool, check out `batdiff` in [`bat-extras`](https://github.com/eth-p/bat-extras).
|
||||||
|
|
||||||
If you are looking for more support for git and diff operations, check out [`delta`](https://github.com/dandavison/delta).
|
If you are looking for more support for git and diff operations, check out [`delta`](https://github.com/dandavison/delta).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user