File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,21 +196,14 @@ function lazy_push() {
196196 # such that if -s or similar is passed it will remove the s from the "last_part"
197197 # before generating a a message
198198
199- # Generate commit message
200- # if [[ -z "$first_folder" ]]; then
201- # commit_message="update ${last_part}"
202- # elif [[ "$first_folder" == "config" ]]; then
203- # commit_message="update ${last_part} $first_folder"
204- # fi
205-
206-
207- echo " ${green} Lazy pushing 🎉${reset} "
199+ # Print out commit message
200+ echo " /n${green} Lazy pushing 🎉${reset} "
208201 echo " ${orange} commit message: ${reset}${fomatted_commit_message}${reset} "
209- # echo "actual commit message: ${commit_message} "
210- # echo " \j
211- #
202+ echo " \n "
203+
204+ # Add, commit, and push
212205 git add $1 &&
213- git commit -m " update $1 " &&
206+ git commit -m $commit_message &&
214207 git push
215208}
216209alias lgap=" lazy_push"
You can’t perform that action at this time.
0 commit comments