feat(git): add diff subcommand
This commit is contained in:
parent
ec9210cd0c
commit
79b3e3ce57
1 changed files with 3 additions and 1 deletions
4
git.sh
4
git.sh
|
@ -39,7 +39,9 @@ gitPush() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" = "stat" ]; then
|
if [ "$1" = "diff" ] || [ "$1" = "d" ]; then
|
||||||
|
git diff --staged
|
||||||
|
elif [ "$1" = "stat" ]; then
|
||||||
gitStatus
|
gitStatus
|
||||||
elif [ "$1" = "push" ]; then
|
elif [ "$1" = "push" ]; then
|
||||||
gitPush
|
gitPush
|
||||||
|
|
Loading…
Reference in a new issue