From 3007aa3f7557cc2e4e84a93fbd217283a8930e26 Mon Sep 17 00:00:00 2001 From: Ayo Date: Tue, 24 Jun 2025 01:10:39 +0200 Subject: [PATCH] feat(git): improvements on git diff script --- ayo.sh | 3 +++ git.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/ayo.sh b/ayo.sh index cf28829..a5f4d38 100755 --- a/ayo.sh +++ b/ayo.sh @@ -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 ;; diff --git a/git.sh b/git.sh index 2e83354..9e1d11f 100755 --- a/git.sh +++ b/git.sh @@ -40,6 +40,7 @@ gitPush() { } if [ "$1" = "diff" ] || [ "$1" = "d" ]; then + git add . git diff --staged elif [ "$1" = "stat" ]; then gitStatus