Skip to content

Commit a7b9fbf

Browse files
committed
Fix difftool example
The example currently reads: git difftool -t <commit1> <commit2> <path> This would cause `commit1` to be considered as the diff tool.
1 parent f5b193c commit a7b9fbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ git diff --word-diff
728728

729729
## Show changes using common diff tools.
730730
```sh
731-
git difftool -t <commit1> <commit2> <path>
731+
git difftool [-t <tool>] <commit1> <commit2> <path>
732732
```
733733

734734
## Don’t consider changes for tracked file.

tips.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"tip": "git diff --word-diff"
258258
}, {
259259
"title": "Show changes using common diff tools.",
260-
"tip": "git difftool -t <commit1> <commit2> <path>"
260+
"tip": "git difftool [-t <tool>] <commit1> <commit2> <path>"
261261
}, {
262262
"title": "Don’t consider changes for tracked file.",
263263
"tip": "git update-index --assume-unchanged <file_name>"

0 commit comments

Comments
 (0)