wip
This commit is contained in:
parent
0d2f819ca7
commit
5035f7d691
1 changed files with 3 additions and 1 deletions
|
@ -524,13 +524,15 @@ __git__() {
|
|||
fi
|
||||
|
||||
case $commit_files in
|
||||
'.') commit_message="wip" ;;
|
||||
.) commit_message="wip" ;;
|
||||
*)
|
||||
echo "${GREEN}Committed files: ${BOLD}${commit_files[*]}${NC}"
|
||||
;;
|
||||
esac
|
||||
|
||||
[[ -z "$commit_files" ]] && commit_files=.
|
||||
[[ -z "$commit_message" ]] && commit_message=wip
|
||||
|
||||
echo "${CYAN}No changes on the remote branch. Adding changes and pushing with ${RED}${BOLD}'$commit_message'${NC}${CYAN} commit.${NC}"
|
||||
|
||||
git add "${commit_files[*]}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue