Updated gac function so it can now handle

multi-line messages and you now press Ctrl+D
when you're finished
This commit is contained in:
phil committed 2026-11-01 16:34:12 +00:00
1 parent 1f84ab7b70
commit 099127d99c
1 file changed
+6 -7
+6 -7
View File
@@ -131,13 +131,12 @@ function gpm() {
}
function gac() {
if [ -d ".git" ]; then
echo "Log Message: "
read logmessage
git add --all && git commit --allow-empty-message -m "$logmessage"
else
echo "No .git Folder found in Directory. Are you in the Correct Folder?"
fi
if [ -d ".git" ]; then
echo "Log Message (press Ctrl+D when done): "
git add --all && git commit -m "$(cat)"
else
echo "No .git Folder found in Directory. Are you in the Correct Folder?"
fi
}