gitpb

package module
v0.0.92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2025 License: GPL-3.0 Imports: 20 Imported by: 0

README

protobuf definition files for git repositories

requires autogenpb & go-mod-clean

  • go-clone go.wit.com/apps/autogenpb
  • you might also need: go-clone go.wit.com/apps/utils/go-mod-clean

Notes/TODO

  • all autogen files are stored as git metadata this includes the go.mod and go.sum files
  • this is done to keep the git commit log as clean as possible
  • metadata can be manipulated using go-mod-clean

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorGitPullOnDirty error = errors.New("cannot git pull on dirty repo")
View Source
var ErrorGitPullOnLocal error = errors.New("git pull on local only branch")
View Source
var ErrorMissingGitConfig error = errors.New("missing .git/config")
View Source
var INFO *log.LogFlag
View Source
var WARN *log.LogFlag

Functions

func IsGoTagPublished added in v0.0.66

func IsGoTagPublished(oldtag string, newtag string) bool

returns true for "v0.2.4" and false for "v0.2.43-asdfj" actually returns false for anything not perfectly versioned

func IsGoTagVersionGreater added in v0.0.66

func IsGoTagVersionGreater(oldtag string, newtag string) bool

returns true if old="v0.2.4" and new="v0.3.3" returns true if equal todo: make all of this smarter someday

func ListFiles added in v0.0.45

func ListFiles(directory string) []string

goes in one directory so it gets remote branch names old code. todo: modernize it

Types

type GitTagAge added in v0.0.19

type GitTagAge []*GitTag

func (GitTagAge) Len added in v0.0.19

func (a GitTagAge) Len() int

func (GitTagAge) Less added in v0.0.19

func (a GitTagAge) Less(i, j int) bool

sorts in ? order

func (GitTagAge) Swap added in v0.0.19

func (a GitTagAge) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳