From 44f860caa01cb5f491856b22dfb835836595b37a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 21 Aug 2025 22:27:16 -0500 Subject: [PATCH] trying to improve forge --- main.go | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/main.go b/main.go index e5a4ee7..a05c617 100644 --- a/main.go +++ b/main.go @@ -31,17 +31,6 @@ var ARGNAME string = "gemini" // using this for now. triggers config save var configSave bool -/* -func getVersion(repo *gitpb.Repo, name string) string { - cmd := []string{"git", "describe", "--tags", "--always", name} - result, _ := repo.RunQuiet(cmd) - output := strings.Join(result.Stdout, "\n") - log.Info("cmd =", cmd, output) - - return strings.TrimSpace(output) -} -*/ - func main() { me = new(mainType) gui.InitArg() @@ -65,20 +54,8 @@ func main() { } if argv.Add != "" { - log.Info("add new conversation to protobuf", argv.Add) - pb := parseRichLog(argv.Add) - verifyUuids(pb) - all := pb.SortByUuid() - for all.Scan() { - chat := all.Next() - log.Info("NEW CHAT", chat.From, chat.Uuid) - if test := me.chats.FindByContentFile(chat.ContentFile); test != nil { - log.Info("NOT NEW CHAT", test.ContentFile) - continue - } - me.chats.AppendByUuid(chat) - } - pb.ConfigSave() + me.chats.AddFile(argv.Add) + me.chats.ConfigSave() okExit("") }