From: Nicolas Boisselier Date: Tue, 14 Jul 2026 08:30:19 +0000 (+0200) Subject: etc/profile.d/git.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=2af786332d681b90e9b1fd330b6a578b565daee5;p=nb.git etc/profile.d/git.sh --- diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index 3d0c5ea3..e125f9fc 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -160,7 +160,9 @@ git_cache_rm() { } git_commit_push() { - git commit -a -m "$*" && git push + local msg="$*" + [ -z "$msg" ] && msg="$(git status -s)" + git commit -a -m "$msg" && git push } git_create() {