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() {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user