From 575c05e65df81fdbc350066482a130d0fc2b8531 Mon Sep 17 00:00:00 2001 From: Pedro Cabral Date: Fri, 17 Jul 2026 15:56:43 +0200 Subject: [PATCH] added commit message --- build/propagate-commit-to-branches.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/propagate-commit-to-branches.sh b/build/propagate-commit-to-branches.sh index 8ddb82d..7be2588 100755 --- a/build/propagate-commit-to-branches.sh +++ b/build/propagate-commit-to-branches.sh @@ -29,6 +29,7 @@ if ! git rev-parse --verify --quiet "${COMMIT}^{commit}" >/dev/null; then fi COMMIT="$(git rev-parse --short "$COMMIT")" +COMMIT_MSG="$(git log -1 --pretty=format:%s "$COMMIT")" PARENT_COUNT="$(git rev-list --parents -n 1 "$COMMIT" | wc -w | tr -d ' ')" if [[ "$PARENT_COUNT" -gt 2 ]]; then @@ -59,7 +60,7 @@ handle_error() { trap handle_error ERR -echo -e "${BLUE}Replicating commit ${COMMIT} from '${START_BRANCH}' to local branches.${RESET}" +echo -e "${BLUE}Propagating commit ${BOLD}'${COMMIT}: ${COMMIT_MSG}'${RESET}${BLUE} from '${START_BRANCH}' to local branches.${RESET}" while IFS= read -r BRANCH; do if [[ "$BRANCH" == "$START_BRANCH" ]]; then