Added alternative as an array

This commit is contained in:
Ranhiru Cooray 2016-06-13 19:47:46 +08:00
parent 32f2a4af35
commit 1ff31a939f
2 changed files with 7 additions and 1 deletions

View File

@ -161,6 +161,12 @@ git diff
git diff --cached
```
__Alternatives:__
```sh
git diff --staged
```
## Show both staged and unstaged changes
```sh
git diff HEAD

View File

@ -25,7 +25,7 @@
}, {
"title": "Changes staged for commit",
"tip": "git diff --cached",
"alternatives": "git diff --staged"
"alternatives": ["git diff --staged"]
}, {
"title": "Show both staged and unstaged changes",
"tip": "git diff HEAD"