From 8c37fc15a8874c059a9adce4ece329c717adfcc6 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 27 Feb 2025 10:44:16 +0400 Subject: [PATCH] =?UTF-8?q?pdev=20cr=C3=A9er=20la=20branche=20si=20elle=20?= =?UTF-8?q?n'existe=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/pdev | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/pdev b/bin/pdev index 1c247cd..0e61e07 100755 --- a/bin/pdev +++ b/bin/pdev @@ -137,8 +137,13 @@ merge) ;; esac git_ensure_cleancheckout - ensure_branches - merge_action "$@" + if ! array_contains LocalBranches "$SrcBranch"; then + # si la branche source n'existe pas, la créer + exec "$MYDIR/pman" "$FEATURE${SrcBranch#$FEATURE}" + else + ensure_branches + merge_action "$@" + fi ;; *) die "$action: action non implémentée"