Documentation ¶
Index ¶
- Variables
- func AskForBranchAncestry(branchName, defaultBranchName string)
- func AskForBranchParent(branchName, defaultBranchName string) string
- func AskHowToHandleUnfinishedRunState(command, endBranch string, endTime time.Time, canSkip bool) string
- func ConfigureMainBranch()
- func ConfigurePerennialBranches()
- func EnsureIsConfigured()
- func EnsureKnowsParentBranches(branchNames []string)
- func GetSquashCommitAuthor(branchName string) string
Constants ¶
This section is empty.
Variables ¶
var ( // ResponseTypeAbort stands for the user choosing to abort the unfinished run state ResponseTypeAbort = "abort" // ResponseTypeContinue stands for the user choosing to continue the unfinished run state ResponseTypeContinue = "continue" // ResponseTypeDiscard stands for the user choosing to discard the unfinished run state ResponseTypeDiscard = "discard" // ResponseTypeQuit stands for the user choosing to quit the program ResponseTypeQuit = "quit" // ResponseTypeSkip stands for the user choosing to continue the unfinished run state by skipping the current branch ResponseTypeSkip = "skip" )
Functions ¶
func AskForBranchAncestry ¶
func AskForBranchAncestry(branchName, defaultBranchName string)
AskForBranchAncestry prompts the user for all unknown ancestors of the given branch
func AskForBranchParent ¶
AskForBranchParent prompts the user for the parent of the given branch
func AskHowToHandleUnfinishedRunState ¶
func AskHowToHandleUnfinishedRunState(command, endBranch string, endTime time.Time, canSkip bool) string
AskHowToHandleUnfinishedRunState prompts the user for how to handle the unfinished run state
func ConfigureMainBranch ¶
func ConfigureMainBranch()
ConfigureMainBranch has the user to confgure the main branch
func ConfigurePerennialBranches ¶
func ConfigurePerennialBranches()
ConfigurePerennialBranches has the user to confgure the perennial branches
func EnsureIsConfigured ¶
func EnsureIsConfigured()
EnsureIsConfigured has the user to confgure the main branch and perennial branches if needed
func EnsureKnowsParentBranches ¶
func EnsureKnowsParentBranches(branchNames []string)
EnsureKnowsParentBranches asserts that the entire ancestry for all given branches is known to Git Town. Missing ancestry information is queried from the user.
func GetSquashCommitAuthor ¶
GetSquashCommitAuthor gets the author of the supplied branch. If the branch has more than one author, the author is queried from the user.
Types ¶
This section is empty.