Files
Lanceur-Geco/main.go
zogzog 55663e3a19 v0.7.5 - Miroir depot git et detection fichiers non suivis
Changements :
- Detection des fichiers non suivis (untracked) dans chaque depot
- Affichage "X fichier(s) en trop" dans le statut
- Popup de confirmation listant les fichiers avant suppression (git clean -fd)
- Suppression auto des fichiers en trop via "Tout mettre a jour"
- Verification du depot distant via git ls-remote avant de proposer le clone
- Affichage "Depot introuvable" si l'URL pointe vers un repo inexistant

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 10:34:40 +01:00

37 lines
558 B
Go

package main
import (
"fmt"
"os"
"path/filepath"
"runtime"
"github.com/lxn/walk"
)
const VERSION = "0.7.5"
func exeDir() string {
exe, err := os.Executable()
if err != nil {
return "."
}
return filepath.Dir(exe)
}
func fileExists(p string) bool {
_, err := os.Stat(p)
return err == nil
}
func main() {
runtime.LockOSThread()
initLogger()
logInfo(fmt.Sprintf("=== Demarrage Git Update Checker v%s ===", VERSION))
if err := runApp(); err != nil {
walk.MsgBox(nil, "Erreur fatale", err.Error(), walk.MsgBoxIconError)
os.Exit(1)
}
}