This commit is contained in:
pika 2025-07-03 15:48:17 +02:00
parent 0d2f819ca7
commit 5035f7d691

View file

@ -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[*]}"