Add Switch Branch in Commit

This commit is contained in:
2025-08-29 17:46:58 +02:00
parent 86512b2d5a
commit 1464995bc8

View File

@@ -922,6 +922,11 @@ Procedure.i DoCommit()
EndIf 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 If Git(args)<>0
MessageRequester("Git add", "Échec: " + #LF$ + main\GitCall\errors, #PB_MessageRequester_Error) MessageRequester("Git add", "Échec: " + #LF$ + main\GitCall\errors, #PB_MessageRequester_Error)
ProcedureReturn #False ProcedureReturn #False
@@ -1382,7 +1387,7 @@ EndProcedure
Main() Main()
; IDE Options = PureBasic 6.21 (Windows - x64) ; IDE Options = PureBasic 6.21 (Windows - x64)
; CursorPosition = 932 ; CursorPosition = 924
; FirstLine = 904 ; FirstLine = 904
; Folding = ------ ; Folding = ------
; EnableXP ; EnableXP