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:
1 parent
1f84ab7b70
commit
099127d99c
1 file changed
+6
-7
@@ -131,13 +131,12 @@ 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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user