feat(git): improvements on git diff script

This commit is contained in:
Ayo Ayco 2025-06-24 01:10:39 +02:00
parent 79b3e3ce57
commit 3007aa3f75
2 changed files with 4 additions and 0 deletions

3
ayo.sh
View file

@ -45,6 +45,9 @@ case $1 in
. ${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
. ${HOME}/Projects/scripts/git.sh stat $2 $3 $4 $5 $6 $7 $8 $9
;;

1
git.sh
View file

@ -40,6 +40,7 @@ gitPush() {
}
if [ "$1" = "diff" ] || [ "$1" = "d" ]; then
git add .
git diff --staged
elif [ "$1" = "stat" ]; then
gitStatus