repostatus

package module
v0.22.32 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-3.0 Imports: 14 Imported by: 7

README

This code is really hacky still

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CHANGE *log.LogFlag
View Source
var INFO *log.LogFlag
View Source
var REPO *log.LogFlag
View Source
var REPOWARN *log.LogFlag
View Source
var WARN *log.LogFlag

Functions

This section is empty.

Types

type GitConfig added in v0.13.1

type GitConfig struct {
	// contains filtered or unexported fields
}

type GitTagBox added in v0.20.8

type GitTagBox struct {
	// contains filtered or unexported fields
}

a GUI box of all the tags in a repo

func (*GitTagBox) List added in v0.20.8

func (rtags *GitTagBox) List() []*Tag

func (*GitTagBox) ListAll added in v0.20.8

func (rtags *GitTagBox) ListAll() []*Tag

func (*GitTagBox) Prune added in v0.20.8

func (rtags *GitTagBox) Prune()

func (*GitTagBox) PruneSmart added in v0.20.8

func (rtags *GitTagBox) PruneSmart()

hide tags worth keeping

type RepoStatus

type RepoStatus struct {
	InitOk bool // it takes a second or so to init these

	// used to temporarily tell the automation tools to
	// try to ignore this repo's changes and state
	// specifically when doing formal releases, sometimes
	// some repos are in flux and can't be changed. This
	// means attempt to overlook that situation.
	Whitelist bool

	Tags *GitTagBox // a box of all the git tags
	// contains filtered or unexported fields
}

func NewRepoStatusWindow added in v0.12.20

func NewRepoStatusWindow(repo *gitpb.Repo) (*RepoStatus, error)

makes a window of the status of the repo don't worry, you can think of it like Sierpinski carpet it's doesn't need to be displayed so it'll work fine even in an embedded space

func (*RepoStatus) Changed

func (rs *RepoStatus) Changed() (string, bool)

reports externally if something has changed since the last time it was asked about it

func (*RepoStatus) CheckGitState added in v0.20.8

func (rs *RepoStatus) CheckGitState() string

func (*RepoStatus) Disable added in v0.12.17

func (rs *RepoStatus) Disable()

func (*RepoStatus) DisableEverything

func (rs *RepoStatus) DisableEverything()

disable all things besides Update() button

func (*RepoStatus) DumpTags added in v0.21.1

func (rs *RepoStatus) DumpTags()

func (*RepoStatus) Enable added in v0.12.17

func (rs *RepoStatus) Enable()

func (*RepoStatus) EnableMergeDevel

func (rs *RepoStatus) EnableMergeDevel()

this means devel needs to be merged to master

func (*RepoStatus) EnableSelectTag

func (rs *RepoStatus) EnableSelectTag()

this means you need to release a new version of the master repository

func (*RepoStatus) GetLastTagVersion

func (rs *RepoStatus) GetLastTagVersion() string

func (*RepoStatus) GetStatus added in v0.12.17

func (rs *RepoStatus) GetStatus() string

func (*RepoStatus) GitState added in v0.20.8

func (rs *RepoStatus) GitState() string

func (*RepoStatus) Hide

func (rs *RepoStatus) Hide()

func (*RepoStatus) IsOnlyLocalTag added in v0.21.1

func (rs *RepoStatus) IsOnlyLocalTag(taggy string) bool

returns true if 'taggy' is _ONLY_ a local tag this means you can not do a git pull or git push on it

func (*RepoStatus) LocalTagExists added in v0.20.8

func (rs *RepoStatus) LocalTagExists(findname string) bool

func (*RepoStatus) NewestTag added in v0.20.9

func (rs *RepoStatus) NewestTag() *Tag

func (*RepoStatus) NoteChange added in v0.20.8

func (rs *RepoStatus) NoteChange(s string)

func (*RepoStatus) Path added in v0.20.8

func (rs *RepoStatus) Path() string

remove this everything

func (*RepoStatus) Ready

func (rs *RepoStatus) Ready() bool

func (*RepoStatus) Show

func (rs *RepoStatus) Show()

func (*RepoStatus) TagExists added in v0.20.8

func (rs *RepoStatus) TagExists(findname string) bool

func (*RepoStatus) Toggle

func (rs *RepoStatus) Toggle()

func (*RepoStatus) Update

func (rs *RepoStatus) Update()

type Tag added in v0.20.8

type Tag struct {
	// contains filtered or unexported fields
}

func (*Tag) Age added in v0.20.9

func (t *Tag) Age() time.Duration

func (*Tag) GetDate added in v0.22.6

func (t *Tag) GetDate() (time.Time, error)

func (*Tag) Hide added in v0.20.8

func (rt *Tag) Hide()

func (*Tag) Name added in v0.20.9

func (t *Tag) Name() string

func (*Tag) Show added in v0.20.8

func (rt *Tag) Show()

func (*Tag) TagString added in v0.20.8

func (rt *Tag) TagString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL