Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchInfo ¶
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
Click to show internal directories.
Click to hide internal directories.