diff options
Diffstat (limited to 'windowMain.go')
| -rw-r--r-- | windowMain.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/windowMain.go b/windowMain.go index 5f7a71b..eb55656 100644 --- a/windowMain.go +++ b/windowMain.go @@ -65,6 +65,18 @@ func globalBuildOptions(vbox *gui.Node) { srcDir := filepath.Join(homeDir, "go/src") me.goSrcPwd.SetText(srcDir) + // use ENV GIT_AUTHOR + me.gitAuthor = gadgets.NewOneLiner(grid, "Git Author") + grid.NextRow() + + if os.Getenv("GIT_AUTHOR_NAME") == "" { + me.gitAuthor.SetText("ENV GIT_AUTHOR_NAME is unset") + } else { + author := os.Getenv("GIT_AUTHOR_NAME") + author += " <" + os.Getenv("GIT_AUTHOR_EMAIL") + ">" + me.gitAuthor.SetText(author) + } + // select the branch you want to test, build and develop against // this lets you select your user branch, but, when you are happy // you can merge everything into the devel branch and make sure it actually |
