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
+2 -3
+2 -3
View File
@@ -132,9 +132,8 @@ function gpm() {
function gac() { function gac() {
if [ -d ".git" ]; then if [ -d ".git" ]; then
echo "Log Message: " echo "Log Message (press Ctrl+D when done): "
read logmessage git add --all && git commit -m "$(cat)"
git add --all && git commit --allow-empty-message -m "$logmessage"
else else
echo "No .git Folder found in Directory. Are you in the Correct Folder?" echo "No .git Folder found in Directory. Are you in the Correct Folder?"
fi fi