File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,6 @@ type_emoji=${type}
3737type=${type_emoji#* }
3838emoji=${type_emoji% * }
3939
40- # Prompt the user to enter a scope (optional)
41- read -p " Enter a scope (optional): " scope
42- scope_part=" "
43- if [ -n " $scope " ]; then
44- scope_part=" ($scope )"
45- fi
46-
4740# Prompt the user to enter a short description
4841read -p " Enter a short description: " desc
4942if [ -z " $desc " ]; then
5447read -p " Enter a longer description (optional): " long_desc
5548
5649# Create the commit message
57- commit_msg=" $emoji $type$scope_part : $desc "
50+ commit_msg=" $emoji $type : $desc "
5851
5952# If a longer description was provided, add it to the commit message
6053if [ -n " $long_desc " ]; then
61- commit_msg+="
62-
63- $long_desc "
54+ commit_msg+=" \n\n$long_desc "
6455fi
6556
6657# Print the commit message to the console
You can’t perform that action at this time.
0 commit comments