attempt to merge devel

This commit is contained in:
Jeff Carr 2025-02-22 04:46:45 -06:00
parent c1f7968f7c
commit 79178228b3
4 changed files with 11 additions and 2 deletions

View File

@ -3,6 +3,6 @@ Build-Depends: golang, protoc-gen-go, autogenpb, go-mod-clean
Package: forge Package: forge
Maintainer: Jeff Carr <jcarr@wit.com> Maintainer: Jeff Carr <jcarr@wit.com>
Architecture: amd64 Architecture: amd64
Depends: Depends: go-gui-toolkits
Recommends: go-clone Recommends: go-clone
Description: 'forge' an attempt at federated 'git' Description: 'forge' an attempt at federated 'git'

View File

@ -101,6 +101,10 @@ func drawWindow(win *gadgets.BasicWindow) {
// me.autoWorkingPwd = gadgets.NewOneLiner(grid, "working directory (pwd)") // me.autoWorkingPwd = gadgets.NewOneLiner(grid, "working directory (pwd)")
me.goSrcPwd = gadgets.NewOneLiner(grid, "repo src home") me.goSrcPwd = gadgets.NewOneLiner(grid, "repo src home")
grid.NewLabel("")
me.demoB = grid.NewButton("Demo", func() {
log.Info("todo: put instructions here")
})
grid.NextRow() grid.NextRow()
usr, _ := user.Current() usr, _ := user.Current()

View File

@ -76,6 +76,7 @@ type mainType struct {
repoDirtyB *gui.Node // "dirty" repos button repoDirtyB *gui.Node // "dirty" repos button
repoDevelMergeB *gui.Node // "merge to devel" repos button repoDevelMergeB *gui.Node // "merge to devel" repos button
repoWritableB *gui.Node // "what repos are writable" repos button repoWritableB *gui.Node // "what repos are writable" repos button
demoB *gui.Node // opens the demo
argvCheckoutUser bool // shared between the GUI and the command line tools argvCheckoutUser bool // shared between the GUI and the command line tools
argvCheckoutDevel bool // shared between the GUI and the command line tools argvCheckoutDevel bool // shared between the GUI and the command line tools

View File

@ -104,8 +104,12 @@ func makeRepoProblemsWindow() *repoProblemsWindow {
repo := all.Next() repo := all.Next()
mname := repo.GetMasterBranchName() mname := repo.GetMasterBranchName()
dname := repo.GetDevelBranchName() dname := repo.GetDevelBranchName()
cmd := []string{"git", "merge", mname, dname} if dname != repo.GetCurrentBranchName() {
log.Info("Repo is not on the devel branch", repo.GetGoPath())
}
cmd := []string{"git", "merge", mname}
log.Info(repo.GetGoPath(), cmd) log.Info(repo.GetGoPath(), cmd)
repo.RunVerbose(cmd)
} }
}) })
hbox.NewButton("test", func() { hbox.NewButton("test", func() {