From ce8996138a9cebfa30bea537b0838133751ebb5f Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 22 May 2024 20:32:18 +0200 Subject: [PATCH] addet some functionality to the function 'gsa' --- functions/git.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/git.fish b/functions/git.fish index 449d34a..4735c0d 100644 --- a/functions/git.fish +++ b/functions/git.fish @@ -28,6 +28,9 @@ function gsa # ─< If the user inputs 'y' or 'Y', execute the git submodule add command >───────────────── case 'y' 'Y' git submodule add --branch $branch --name $name $repo $path + git add . + git commit -m "Addet $name as a submodule" + git push # ─< If the user inputs 'n' or 'N', notify them to try again >────────────────────────────── case 'n' 'N'