Skip to content

Commit ba5804a

Browse files
devydevy
authored andcommitted
update github functions
1 parent 0cabcaa commit ba5804a

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

functions/github.sh

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff 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
}
216209
alias lgap="lazy_push"

0 commit comments

Comments
 (0)