From 1464995bc842f193c6640c9e4df92219239fed24 Mon Sep 17 00:00:00 2001 From: Thyphoon Date: Fri, 29 Aug 2025 17:46:58 +0200 Subject: [PATCH] Add Switch Branch in Commit --- main2.pb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main2.pb b/main2.pb index 149ca47..ba0580d 100644 --- a/main2.pb +++ b/main2.pb @@ -921,6 +921,11 @@ Procedure.i DoCommit() ProcedureReturn #False EndIf + + If GetGadgetText(#GID_CbLocalBranch)<>"" And Git("switch "+GetGadgetText(#GID_CbLocalBranch))<>0 + MessageRequester("Git switch", "Échec: " + #LF$ + main\GitCall\errors, #PB_MessageRequester_Error) + EndIf + If Git(args)<>0 MessageRequester("Git add", "Échec: " + #LF$ + main\GitCall\errors, #PB_MessageRequester_Error) @@ -1382,7 +1387,7 @@ EndProcedure Main() ; IDE Options = PureBasic 6.21 (Windows - x64) -; CursorPosition = 932 +; CursorPosition = 924 ; FirstLine = 904 ; Folding = ------ ; EnableXP