state

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchInfo

type BranchInfo struct {
	Name         string `json:"name"`
	BranchType   string `json:"branch_type"`
	ShortName    string `json:"short_name"`
	CommitsAhead int    `json:"commits_ahead"`
	HasRemote    bool   `json:"has_remote"`
}

type MergeState

type MergeState struct {
	InMerge          bool     `json:"in_merge"`
	ConflictedFiles  []string `json:"conflicted_files"`
	MergeHead        string   `json:"merge_head"`
	OperationType    string   `json:"operation_type"`
	OperationVersion string   `json:"operation_version"`
}

func DetectMergeState

func DetectMergeState(cfg config.FlowConfig) MergeState

type RepoState

type RepoState struct {
	Current             string       `json:"current"`
	Version             string       `json:"version"`
	LastTag             string       `json:"last_tag"`
	Dirty               bool         `json:"dirty"`
	UncommittedCount    int          `json:"uncommitted_count"`
	Remotes             []string     `json:"remotes"`
	HasDefaultRemote    bool         `json:"has_default_remote"`
	DefaultRemoteBranch string       `json:"default_remote_branch"`
	Features            []BranchInfo `json:"features"`
	Bugfixes            []BranchInfo `json:"bugfixes"`
	Releases            []BranchInfo `json:"releases"`
	Hotfixes            []BranchInfo `json:"hotfixes"`
	HasDevelop          bool         `json:"has_develop"`
	HasMain             bool         `json:"has_main"`
	DevelopAheadOfMain  int          `json:"develop_ahead_of_main"`
	MainAheadOfDevelop  int          `json:"main_ahead_of_develop"`
	DevelopOnlyFiles    []string     `json:"develop_only_files"`
	MainOnlyFiles       []string     `json:"main_only_files"`
	Merge               MergeState   `json:"merge"`
	GitFlowInitialized  bool         `json:"git_flow_initialized"`
	ProjectRoot         string       `json:"project_root"`
}

func DetectState

func DetectState(cfg config.FlowConfig) RepoState

Jump to

Keyboard shortcuts

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