git

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mode, extraArg string)

Add executes the git-add command with a mode. A mode could be: -p or simply a dot.

func AnythingStaged

func AnythingStaged() bool

AnythingStaged checks if there are staged changes in the current dir.

func AreThereChanges

func AreThereChanges() bool

AreThereChanges checks if there are local changes in the current dir.

func Commit

func Commit(commitMsg string)

Commit executes git-commit with the build message.

func EmptyCommit

func EmptyCommit(commitMsg string)

Make an commit with no content

func GetAndSaveNewTeamMember

func GetAndSaveNewTeamMember(path string, abbreviation string, tms []input.TeamMember) (input.TeamMember, error)

GetAndSaveNewTeamMember runs GetNewTeamMemberFromInput and then saves the result in the team-members file.

func GetPair

func GetPair(commitConfig input.CommitConfig, currentPair []string, teamMembers []input.TeamMember) ([]input.TeamMember, error)

GetPair tries to get the current pairing-partner from the user-input.

func GetTeamMemberByAbbreviation

func GetTeamMemberByAbbreviation(tms []input.TeamMember, abbreviation string) (input.TeamMember, error)

GetTeamMemberByAbbreviation makes a lookup for a team-member by the abbreviation.

func ReviewSummary

func ReviewSummary(summary string) string

ReviewSummary fixes the commit-summary by some simple rules.

func SeparateAbbreviation

func SeparateAbbreviation(input string) []string

SeparateAbbreviation takes a string and splits it by [,| ] and returns a list of existing strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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