From 2af786332d681b90e9b1fd330b6a578b565daee5 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 14 Jul 2026 10:30:19 +0200 Subject: [PATCH] etc/profile.d/git.sh --- etc/profile.d/git.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() { -- 2.47.3