feat(git): improvements on git diff script
This commit is contained in:
parent
79b3e3ce57
commit
3007aa3f75
2 changed files with 4 additions and 0 deletions
3
ayo.sh
3
ayo.sh
|
@ -45,6 +45,9 @@ case $1 in
|
||||||
. ${HOME}/Projects/scripts/notes.sh -t $2 $3 $4 $5 $6 $7 $8 $9
|
. ${HOME}/Projects/scripts/notes.sh -t $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
gd) # git diff
|
||||||
|
. ${HOME}/Projects/scripts/git.sh diff $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
|
;;
|
||||||
gs) # git status
|
gs) # git status
|
||||||
. ${HOME}/Projects/scripts/git.sh stat $2 $3 $4 $5 $6 $7 $8 $9
|
. ${HOME}/Projects/scripts/git.sh stat $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
;;
|
;;
|
||||||
|
|
1
git.sh
1
git.sh
|
@ -40,6 +40,7 @@ gitPush() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" = "diff" ] || [ "$1" = "d" ]; then
|
if [ "$1" = "diff" ] || [ "$1" = "d" ]; then
|
||||||
|
git add .
|
||||||
git diff --staged
|
git diff --staged
|
||||||
elif [ "$1" = "stat" ]; then
|
elif [ "$1" = "stat" ]; then
|
||||||
gitStatus
|
gitStatus
|
||||||
|
|
Loading…
Reference in a new issue