mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-26 05:04:24 +00:00
chore(diff): get better diffs in the terminal
This commit is contained in:
@@ -112,6 +112,7 @@ git log -p 'feature' --not 'master'
|
||||
|
||||
# Just show changes between two files.
|
||||
git diff --no-index 'path/to/file/a' 'path/to/file/b'
|
||||
git diff --no-index --word-diff --patience 'path/to/file/A' 'path/to/file/B'
|
||||
|
||||
# Stage changes for commit.
|
||||
git add .
|
||||
@@ -584,6 +585,7 @@ git diff --word-diff='porcelain'
|
||||
# DO NOT consider them part of of the repository.
|
||||
# This can be used to diff any two files.
|
||||
git diff --no-index 'path/to/file/A' 'path/to/file/B'
|
||||
git diff --no-index --word-diff --patience 'path/to/file/A' 'path/to/file/B'
|
||||
```
|
||||
|
||||
Better word-aware diff:
|
||||
|
||||
Reference in New Issue
Block a user