improvement AddRemoteRepo

This commit is contained in:
2025-08-24 18:32:37 +02:00
parent c0148b8790
commit f8fc232de6

444
main.pb
View File

@@ -12,190 +12,190 @@
#EnableDebug=#True
Global GitIgnoreHelpHTML.s = ~"<!DOCTYPE html>" + #LF$ +
~"<html lang=\"fr\">" + #LF$ +
~"<head>" + #LF$ +
~" <meta charset=\"UTF-8\">" + #LF$ +
~" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">" + #LF$ +
~" <title>Aide .gitignore</title>" + #LF$ +
~" <style>" + #LF$ +
~" body {" + #LF$ +
~" font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;" + #LF$ +
~" margin: 0;" + #LF$ +
~" padding: 20px;" + #LF$ +
~" background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);" + #LF$ +
~" color: #333;" + #LF$ +
~" line-height: 1.6;" + #LF$ +
~" }" + #LF$ +
~" .container {" + #LF$ +
~" max-width: 900px;" + #LF$ +
~" margin: 0 auto;" + #LF$ +
~" background: white;" + #LF$ +
~" border-radius: 15px;" + #LF$ +
~" padding: 30px;" + #LF$ +
~" box-shadow: 0 20px 40px rgba(0,0,0,0.1);" + #LF$ +
~" }" + #LF$ +
~" h1 {" + #LF$ +
~" color: #2c3e50;" + #LF$ +
~" text-align: center;" + #LF$ +
~" margin-bottom: 30px;" + #LF$ +
~" font-size: 2.5em;" + #LF$ +
~" background: linear-gradient(45deg, #667eea, #764ba2);" + #LF$ +
~" -webkit-background-clip: text;" + #LF$ +
~" -webkit-text-fill-color: transparent;" + #LF$ +
~" background-clip: text;" + #LF$ +
~" }" + #LF$ +
~" h2 {" + #LF$ +
~" color: #34495e;" + #LF$ +
~" border-left: 4px solid #667eea;" + #LF$ +
~" padding-left: 15px;" + #LF$ +
~" margin-top: 30px;" + #LF$ +
~" font-size: 1.4em;" + #LF$ +
~" }" + #LF$ +
~" .syntax-box {" + #LF$ +
~" background: #f8f9fa;" + #LF$ +
~" border: 1px solid #e9ecef;" + #LF$ +
~" border-radius: 8px;" + #LF$ +
~" padding: 15px;" + #LF$ +
~" margin: 15px 0;" + #LF$ +
~" font-family: 'Consolas', 'Monaco', monospace;" + #LF$ +
~" font-size: 0.9em;" + #LF$ +
~" overflow-x: auto;" + #LF$ +
~" }" + #LF$ +
~" .example {" + #LF$ +
~" background: linear-gradient(135deg, #667eea20, #764ba220);" + #LF$ +
~" border-left: 4px solid #667eea;" + #LF$ +
~" padding: 15px;" + #LF$ +
~" margin: 15px 0;" + #LF$ +
~" border-radius: 0 8px 8px 0;" + #LF$ +
~" }" + #LF$ +
~" .tip {" + #LF$ +
~" background: #e8f5e8;" + #LF$ +
~" border: 1px solid #4caf50;" + #LF$ +
~" border-radius: 8px;" + #LF$ +
~" padding: 15px;" + #LF$ +
~" margin: 15px 0;" + #LF$ +
~" }" + #LF$ +
~" .warning {" + #LF$ +
~" background: #fff3e0;" + #LF$ +
~" border: 1px solid #ff9800;" + #LF$ +
~" border-radius: 8px;" + #LF$ +
~" padding: 15px;" + #LF$ +
~" margin: 15px 0;" + #LF$ +
~" }" + #LF$ +
~" code {" + #LF$ +
~" background: #f1f3f4;" + #LF$ +
~" padding: 2px 6px;" + #LF$ +
~" border-radius: 4px;" + #LF$ +
~" font-family: 'Consolas', 'Monaco', monospace;" + #LF$ +
~" color: #d73a49;" + #LF$ +
~" }" + #LF$ +
~" ul {" + #LF$ +
~" padding-left: 20px;" + #LF$ +
~" }" + #LF$ +
~" li {" + #LF$ +
~" margin: 8px 0;" + #LF$ +
~" }" + #LF$ +
~" .pattern {" + #LF$ +
~" display: inline-block;" + #LF$ +
~" background: #667eea;" + #LF$ +
~" color: white;" + #LF$ +
~" padding: 3px 8px;" + #LF$ +
~" border-radius: 4px;" + #LF$ +
~" font-family: 'Consolas', 'Monaco', monospace;" + #LF$ +
~" font-size: 0.9em;" + #LF$ +
~" margin: 2px;" + #LF$ +
~" }" + #LF$ +
~" </style>" + #LF$ +
~"</head>" + #LF$ +
~"<body>" + #LF$ +
~" <div class=\"container\">" + #LF$ +
~" <h1>📁 Guide .gitignore</h1>" + #LF$ +
~" " + #LF$ +
~" <p>Le fichier <code>.gitignore</code> permet de spécifier quels fichiers et dossiers Git doit ignorer lors du versioning.</p>" + #LF$ +
~" " + #LF$ +
~" <h2>🎯 Syntaxe de base</h2>" + #LF$ +
~" " + #LF$ +
~" <div class=\"example\">" + #LF$ +
~" <strong>Ignorer des fichiers spécifiques :</strong>" + #LF$ +
~" <div class=\"syntax-box\">" + #LF$ +
~"config.txt # Ignore le fichier config.txt<br>" + #LF$ +
~"*.log # Ignore tous les fichiers .log<br>" + #LF$ +
~"temp/ # Ignore le dossier temp et tout son contenu" + #LF$ +
~" </div>" + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <h2>🔧 Patterns et wildcards</h2>" + #LF$ +
~" " + #LF$ +
~" <ul>" + #LF$ +
~" <li><span class=\"pattern\">*</span> : correspond à n'importe quelle chaîne (sauf <code>/</code>)</li>" + #LF$ +
~" <li><span class=\"pattern\">**</span> : correspond à n'importe quel nombre de répertoires</li>" + #LF$ +
~" <li><span class=\"pattern\">?</span> : correspond à un seul caractère</li>" + #LF$ +
~" <li><span class=\"pattern\">[abc]</span> : correspond à a, b ou c</li>" + #LF$ +
~" </ul>" + #LF$ +
~" " + #LF$ +
~" <h2>🚫 Négation avec !</h2>" + #LF$ +
~" " + #LF$ +
~" <div class=\"syntax-box\">" + #LF$ +
~"*.log<br>" + #LF$ +
~"!important.log # Inclut ce fichier malgré la règle précédente" + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <h2>📍 Chemins</h2>" + #LF$ +
~" " + #LF$ +
~" <div class=\"example\">" + #LF$ +
~" <div class=\"syntax-box\">" + #LF$ +
~"/build # Ignore build à la racine uniquement<br>" + #LF$ +
~"build/ # Ignore tous les dossiers build<br>" + #LF$ +
~"docs/**/*.pdf # Ignore tous les PDF dans docs et ses sous-dossiers" + #LF$ +
~" </div>" + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <h2>💡 Exemples courants</h2>" + #LF$ +
~" " + #LF$ +
~" <div class=\"syntax-box\">" + #LF$ +
~"# Fichiers de build<br>" + #LF$ +
~"dist/<br>" + #LF$ +
~"build/<br>" + #LF$ +
~"<br>" + #LF$ +
~"# Dépendances<br>" + #LF$ +
~"node_modules/<br>" + #LF$ +
~"vendor/<br>" + #LF$ +
~"<br>" + #LF$ +
~"# Configuration locale<br>" + #LF$ +
~".env<br>" + #LF$ +
~"config.local.json<br>" + #LF$ +
~"<br>" + #LF$ +
~"# Logs et caches<br>" + #LF$ +
~"*.log<br>" + #LF$ +
~".cache/<br>" + #LF$ +
~"<br>" + #LF$ +
~"# Fichiers d'IDE<br>" + #LF$ +
~".vscode/<br>" + #LF$ +
~".idea/<br>" + #LF$ +
~"<br>" + #LF$ +
~"# Fichiers système<br>" + #LF$ +
~".DS_Store<br>" + #LF$ +
~"Thumbs.db" + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <div class=\"tip\">" + #LF$ +
~" <strong>💡 Conseil :</strong> Utilisez des commentaires avec <code>#</code> pour documenter vos règles." + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <div class=\"warning\">" + #LF$ +
~" <strong>⚠️ Important :</strong> Le .gitignore ne s'applique qu'aux fichiers non-trackés. Pour ignorer des fichiers déjà versionnés, utilisez <code>git rm --cached &lt;fichier&gt;</code>." + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <h2>🔍 Tester vos règles</h2>" + #LF$ +
~" " + #LF$ +
~" <div class=\"syntax-box\">" + #LF$ +
~"git check-ignore -v &lt;fichier&gt; # Vérifie si un fichier est ignoré<br>" + #LF$ +
~"git status --ignored # Affiche les fichiers ignorés" + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" </div>" + #LF$ +
~"</body>" + #LF$ +
~"</html>"
~"<html lang=\"fr\">" + #LF$ +
~"<head>" + #LF$ +
~" <meta charset=\"UTF-8\">" + #LF$ +
~" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">" + #LF$ +
~" <title>Aide .gitignore</title>" + #LF$ +
~" <style>" + #LF$ +
~" body {" + #LF$ +
~" font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;" + #LF$ +
~" margin: 0;" + #LF$ +
~" padding: 20px;" + #LF$ +
~" background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);" + #LF$ +
~" color: #333;" + #LF$ +
~" line-height: 1.6;" + #LF$ +
~" }" + #LF$ +
~" .container {" + #LF$ +
~" max-width: 900px;" + #LF$ +
~" margin: 0 auto;" + #LF$ +
~" background: white;" + #LF$ +
~" border-radius: 15px;" + #LF$ +
~" padding: 30px;" + #LF$ +
~" box-shadow: 0 20px 40px rgba(0,0,0,0.1);" + #LF$ +
~" }" + #LF$ +
~" h1 {" + #LF$ +
~" color: #2c3e50;" + #LF$ +
~" text-align: center;" + #LF$ +
~" margin-bottom: 30px;" + #LF$ +
~" font-size: 2.5em;" + #LF$ +
~" background: linear-gradient(45deg, #667eea, #764ba2);" + #LF$ +
~" -webkit-background-clip: text;" + #LF$ +
~" -webkit-text-fill-color: transparent;" + #LF$ +
~" background-clip: text;" + #LF$ +
~" }" + #LF$ +
~" h2 {" + #LF$ +
~" color: #34495e;" + #LF$ +
~" border-left: 4px solid #667eea;" + #LF$ +
~" padding-left: 15px;" + #LF$ +
~" margin-top: 30px;" + #LF$ +
~" font-size: 1.4em;" + #LF$ +
~" }" + #LF$ +
~" .syntax-box {" + #LF$ +
~" background: #f8f9fa;" + #LF$ +
~" border: 1px solid #e9ecef;" + #LF$ +
~" border-radius: 8px;" + #LF$ +
~" padding: 15px;" + #LF$ +
~" margin: 15px 0;" + #LF$ +
~" font-family: 'Consolas', 'Monaco', monospace;" + #LF$ +
~" font-size: 0.9em;" + #LF$ +
~" overflow-x: auto;" + #LF$ +
~" }" + #LF$ +
~" .example {" + #LF$ +
~" background: linear-gradient(135deg, #667eea20, #764ba220);" + #LF$ +
~" border-left: 4px solid #667eea;" + #LF$ +
~" padding: 15px;" + #LF$ +
~" margin: 15px 0;" + #LF$ +
~" border-radius: 0 8px 8px 0;" + #LF$ +
~" }" + #LF$ +
~" .tip {" + #LF$ +
~" background: #e8f5e8;" + #LF$ +
~" border: 1px solid #4caf50;" + #LF$ +
~" border-radius: 8px;" + #LF$ +
~" padding: 15px;" + #LF$ +
~" margin: 15px 0;" + #LF$ +
~" }" + #LF$ +
~" .warning {" + #LF$ +
~" background: #fff3e0;" + #LF$ +
~" border: 1px solid #ff9800;" + #LF$ +
~" border-radius: 8px;" + #LF$ +
~" padding: 15px;" + #LF$ +
~" margin: 15px 0;" + #LF$ +
~" }" + #LF$ +
~" code {" + #LF$ +
~" background: #f1f3f4;" + #LF$ +
~" padding: 2px 6px;" + #LF$ +
~" border-radius: 4px;" + #LF$ +
~" font-family: 'Consolas', 'Monaco', monospace;" + #LF$ +
~" color: #d73a49;" + #LF$ +
~" }" + #LF$ +
~" ul {" + #LF$ +
~" padding-left: 20px;" + #LF$ +
~" }" + #LF$ +
~" li {" + #LF$ +
~" margin: 8px 0;" + #LF$ +
~" }" + #LF$ +
~" .pattern {" + #LF$ +
~" display: inline-block;" + #LF$ +
~" background: #667eea;" + #LF$ +
~" color: white;" + #LF$ +
~" padding: 3px 8px;" + #LF$ +
~" border-radius: 4px;" + #LF$ +
~" font-family: 'Consolas', 'Monaco', monospace;" + #LF$ +
~" font-size: 0.9em;" + #LF$ +
~" margin: 2px;" + #LF$ +
~" }" + #LF$ +
~" </style>" + #LF$ +
~"</head>" + #LF$ +
~"<body>" + #LF$ +
~" <div class=\"container\">" + #LF$ +
~" <h1>📁 Guide .gitignore</h1>" + #LF$ +
~" " + #LF$ +
~" <p>Le fichier <code>.gitignore</code> permet de spécifier quels fichiers et dossiers Git doit ignorer lors du versioning.</p>" + #LF$ +
~" " + #LF$ +
~" <h2>🎯 Syntaxe de base</h2>" + #LF$ +
~" " + #LF$ +
~" <div class=\"example\">" + #LF$ +
~" <strong>Ignorer des fichiers spécifiques :</strong>" + #LF$ +
~" <div class=\"syntax-box\">" + #LF$ +
~"config.txt # Ignore le fichier config.txt<br>" + #LF$ +
~"*.log # Ignore tous les fichiers .log<br>" + #LF$ +
~"temp/ # Ignore le dossier temp et tout son contenu" + #LF$ +
~" </div>" + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <h2>🔧 Patterns et wildcards</h2>" + #LF$ +
~" " + #LF$ +
~" <ul>" + #LF$ +
~" <li><span class=\"pattern\">*</span> : correspond à n'importe quelle chaîne (sauf <code>/</code>)</li>" + #LF$ +
~" <li><span class=\"pattern\">**</span> : correspond à n'importe quel nombre de répertoires</li>" + #LF$ +
~" <li><span class=\"pattern\">?</span> : correspond à un seul caractère</li>" + #LF$ +
~" <li><span class=\"pattern\">[abc]</span> : correspond à a, b ou c</li>" + #LF$ +
~" </ul>" + #LF$ +
~" " + #LF$ +
~" <h2>🚫 Négation avec !</h2>" + #LF$ +
~" " + #LF$ +
~" <div class=\"syntax-box\">" + #LF$ +
~"*.log<br>" + #LF$ +
~"!important.log # Inclut ce fichier malgré la règle précédente" + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <h2>📍 Chemins</h2>" + #LF$ +
~" " + #LF$ +
~" <div class=\"example\">" + #LF$ +
~" <div class=\"syntax-box\">" + #LF$ +
~"/build # Ignore build à la racine uniquement<br>" + #LF$ +
~"build/ # Ignore tous les dossiers build<br>" + #LF$ +
~"docs/**/*.pdf # Ignore tous les PDF dans docs et ses sous-dossiers" + #LF$ +
~" </div>" + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <h2>💡 Exemples courants</h2>" + #LF$ +
~" " + #LF$ +
~" <div class=\"syntax-box\">" + #LF$ +
~"# Fichiers de build<br>" + #LF$ +
~"dist/<br>" + #LF$ +
~"build/<br>" + #LF$ +
~"<br>" + #LF$ +
~"# Dépendances<br>" + #LF$ +
~"node_modules/<br>" + #LF$ +
~"vendor/<br>" + #LF$ +
~"<br>" + #LF$ +
~"# Configuration locale<br>" + #LF$ +
~".env<br>" + #LF$ +
~"config.local.json<br>" + #LF$ +
~"<br>" + #LF$ +
~"# Logs et caches<br>" + #LF$ +
~"*.log<br>" + #LF$ +
~".cache/<br>" + #LF$ +
~"<br>" + #LF$ +
~"# Fichiers d'IDE<br>" + #LF$ +
~".vscode/<br>" + #LF$ +
~".idea/<br>" + #LF$ +
~"<br>" + #LF$ +
~"# Fichiers système<br>" + #LF$ +
~".DS_Store<br>" + #LF$ +
~"Thumbs.db" + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <div class=\"tip\">" + #LF$ +
~" <strong>💡 Conseil :</strong> Utilisez des commentaires avec <code>#</code> pour documenter vos règles." + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <div class=\"warning\">" + #LF$ +
~" <strong>⚠️ Important :</strong> Le .gitignore ne s'applique qu'aux fichiers non-trackés. Pour ignorer des fichiers déjà versionnés, utilisez <code>git rm --cached &lt;fichier&gt;</code>." + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" <h2>🔍 Tester vos règles</h2>" + #LF$ +
~" " + #LF$ +
~" <div class=\"syntax-box\">" + #LF$ +
~"git check-ignore -v &lt;fichier&gt; # Vérifie si un fichier est ignoré<br>" + #LF$ +
~"git status --ignored # Affiche les fichiers ignorés" + #LF$ +
~" </div>" + #LF$ +
~" " + #LF$ +
~" </div>" + #LF$ +
~"</body>" + #LF$ +
~"</html>"
; =============================================================================
@@ -1261,24 +1261,31 @@ EndProcedure
Procedure AddRemoteRepo(Url.s,name.s="origin")
Url=_SupTrim(Url)
name=_SupTrim(name)
Debug "Url="+Url
Debug "name="+name
Protected add.b=#False
;Check if this remote already exists
main\Gitcall\args = "remote get-url "+name
If RunExe(@main\Gitcall) = 0
;if yes we remove it
If Url<>_SupTrim(main\Gitcall\output)
main\Gitcall\args = "remote remove "+name
RunExe(@main\Gitcall)
add=#True
EndIf
Else
add=#True
EndIf
; We add a new remote
If add=#True
main\Gitcall\args = "remote add "+name+" "+Url
If RunExe(@main\Gitcall) = 0
MessageRequester("Git Remote", "OK:" + #LF$ + main\Gitcall\output, #PB_MessageRequester_Info)
;MessageRequester("Git Remote", "OK:" + #LF$ + main\Gitcall\output, #PB_MessageRequester_Info)
ProcedureReturn #True
Else
MessageRequester("Git config", "Échec: " + #LF$ + main\Gitcall\errors, #PB_MessageRequester_Error)
ProcedureReturn #False
EndIf
ProcedureReturn #True
EndIf
EndProcedure
Procedure GetRemoteUrl(name.s="origin")
@@ -1823,6 +1830,7 @@ Procedure RefreshFileList(null.i)
DisableGadget(#GdtBtnRefresh,#False)
GetBranchesList()
GetRemoteUrl()
GetCommitHistory()
EndProcedure
Procedure UpdateHelp(txt.s)
@@ -2082,25 +2090,25 @@ Procedure OpenGUI()
CloseGadgetList()
; ============================================================
; Aide à droite du Panel (sans splitter)
; ============================================================
; On garde #PanelW / #PanelH tels quels
; Aide à droite du Panel (sans splitter)
; ============================================================
; On garde #PanelW / #PanelH tels quels
Define helpGap = 10 ; espace entre panel et aide
Define helpX = #InPad + #PanelW + helpGap ; à droite du panel
Define helpY = #InPad
Define helpW = WindowWidth(#WinMain)-GadgetWidth(#gdtPnl)- #InPad*4 ; reste de largeur jusqu'à la marge droite
Define helpH = #PanelH ; même hauteur que le panel
Define helpGap = 10 ; espace entre panel et aide
Define helpX = #InPad + #PanelW + helpGap ; à droite du panel
Define helpY = #InPad
Define helpW = WindowWidth(#WinMain)-GadgetWidth(#gdtPnl)- #InPad*4 ; reste de largeur jusqu'à la marge droite
Define helpH = #PanelH ; même hauteur que le panel
; (Optionnel) borne minimale si besoin
If helpW < 100 : helpW = 100 : EndIf
; (Optionnel) borne minimale si besoin
If helpW < 100 : helpW = 100 : EndIf
; Soit en direct :
WebViewGadget(#GdtHelp, helpX, helpY, helpW, helpH)
; Soit en direct :
WebViewGadget(#GdtHelp, helpX, helpY, helpW, helpH)
; — ou, si tu veux un cadre :
; FrameGadget(#GdtFrmHelp, helpX, helpY, helpW, helpH, T("GdtFrmHelp","Aide"))
; WebViewGadget(#GdtHelp, helpX + 10, helpY + 25, helpW - 20, helpH - 35)
; — ou, si tu veux un cadre :
; FrameGadget(#GdtFrmHelp, helpX, helpY, helpW, helpH, T("GdtFrmHelp","Aide"))
; WebViewGadget(#GdtHelp, helpX + 10, helpY + 25, helpW - 20, helpH - 35)
SetGadgetText(#GgtFieldRepo,main\GitCall\workdir)
@@ -2108,10 +2116,10 @@ WebViewGadget(#GdtHelp, helpX, helpY, helpW, helpH)
InitGadget()
_SetTooltips()
If FileSize(".git")=-2:main\info\isInit=#True:EndIf
If main\info\isInit=#True
GetRemoteUrl("origin")
GetCommitHistory()
EndIf
;If main\info\isInit=#True
; GetRemoteUrl("origin")
; GetCommitHistory()
;;EndIf
GetBranchesList()
@@ -2124,7 +2132,8 @@ WebViewGadget(#GdtHelp, helpX, helpY, helpW, helpH)
Quit=#True
Case #PB_Event_Gadget
Select EventGadget()
Case #gdtPnl
Case #GdtPnl
Debug "Click>#gdtPnl"
If EventType()=#PB_EventType_Change
ReadGitIgnorefile()
Select GetGadgetState(#GdtPnl)
@@ -2134,17 +2143,22 @@ WebViewGadget(#GdtHelp, helpX, helpY, helpW, helpH)
EndIf
Case #GdtBtnInit
Debug "Click>#GdtBtnInit"
DoInit()
CreateThread(@RefreshFileList(),0)
Case #GdtBtnRefresh
Debug "Click>#GdtBtnRefresh"
CreateThread(@RefreshFileList(),0)
Case #GgtFieldRepo
If EventType()=#PB_EventType_LostFocus
Debug "Click>#GgtFieldRepo"
main\GitCall\workdir=GetGadgetText(#GgtFieldRepo)
CreateThread(@RefreshFileList(),0)
EndIf
Case #GdtBtnBrowseRepo
Debug "Click>#GdtBtnBrowseRepo"
Protected path.s=PathRequester("Select Folder",main\GitCall\workdir,WindowID(#WinMain))
If path<>"" And FileSize(path)=-2
main\GitCall\workdir=path
@@ -2158,15 +2172,21 @@ WebViewGadget(#GdtHelp, helpX, helpY, helpW, helpH)
; EndIf
Case #GdtBtnClone
Debug "Click>#GdtBtnClone"
DoClone()
Case #GdtBtnPush
Debug "Click>#GdtBtnPush"
DoPush()
Case #GdtBtnPull
Debug "Click>#GdtBtnPull"
DoPull()
Case #GdtListStatus
Debug "Click>#GdtListStatus"
Case #GdtBtnIgnore
Debug "Click>#GdtBtnIgnore"
ToggleGitIgnoreForSelection()
Case #GdtBtnSaveGitIgnore
Debug "Click>#GdtBtnSaveGitIgnore"
Protected hf.i=CreateFile(#PB_Any,".gitignore")
If hf
WriteString(hf,GetGadgetText(#GdtTxtGitIgnore))
@@ -2174,18 +2194,24 @@ WebViewGadget(#GdtHelp, helpX, helpY, helpW, helpH)
EndIf
Case #GdtBtnCommit
Debug "Click>#GdtBtnCommit"
DoCommit()
Case #GdtFieldRemote
Debug "Click>#GdtFieldRemote"
Case #GdtListHistory
Debug "Click>#GdtListHistory"
If EventType() = #PB_EventType_Change
ShowSelectedCommitInfo()
EndIf
Case #GdtSlctBranch
Debug "Click>#GdtSlctBranch"
Case #GdtSlctScope
Debug "Click>#GdtSlctScope"
GetGitIdentity()
Case #GdtBtnSaveCfg
Debug "Click>#GdtBtnSaveCfg"
SetGitIdentity()
@@ -2202,8 +2228,8 @@ OpenGUI()
; IDE Options = PureBasic 6.21 (Windows - x64)
; CursorPosition = 541
; FirstLine = 509
; CursorPosition = 2191
; FirstLine = 2180
; Folding = ----------
; Optimizer
; EnableThread