Documentation ¶
Index ¶
- Variables
- func BuildChangeMap(commits []CommitMessage) map[string]map[string]int
- func BuildCommitMessageMap(messages []CommitMessage, infos map[string]ProjectInfo) map[string]ProjectInfo
- func GetRelatedFiles(commitMessages []CommitMessage, relatedConfig []byte) [][]string
- func ParseLog(text string)
- func ShowChangeLogSummary(commits []CommitMessage, output io.Writer)
- func UpdateMessageForChange(changedFile string) (string, string, string)
- type CodeAgeDisplay
- type CommitMessage
- type FileChange
- type GitSummary
- type ProjectInfo
- type TeamSummary
- type TopAuthor
Constants ¶
This section is empty.
Variables ¶
View Source
var GIT_RELATED_MAX_SIZE = 10
View Source
var MIN_DATASET = 2
Functions ¶
func BuildChangeMap ¶
func BuildChangeMap(commits []CommitMessage) map[string]map[string]int
func BuildCommitMessageMap ¶
func BuildCommitMessageMap(messages []CommitMessage, infos map[string]ProjectInfo) map[string]ProjectInfo
func GetRelatedFiles ¶
func GetRelatedFiles(commitMessages []CommitMessage, relatedConfig []byte) [][]string
func ShowChangeLogSummary ¶
func ShowChangeLogSummary(commits []CommitMessage, output io.Writer)
high fix high features
Types ¶
type CodeAgeDisplay ¶
type CommitMessage ¶
type CommitMessage struct { Rev string Author string Date string Message string Changes []FileChange }
func BuildMessageByInput ¶
func BuildMessageByInput(inputStr string) []CommitMessage
type GitSummary ¶
func BasicSummary ¶
func BasicSummary(commitMessages []CommitMessage) *GitSummary
type ProjectInfo ¶
type ProjectInfo struct { EntityName string Authors map[string]string Revs map[string]string Age time.Time }
func CalculateCodeAge ¶
func CalculateCodeAge(messages []CommitMessage) []ProjectInfo
type TeamSummary ¶
func GetTeamSummary ¶
func GetTeamSummary(messages []CommitMessage) []TeamSummary
type TopAuthor ¶
func GetTopAuthors ¶
func GetTopAuthors(commitMessages []CommitMessage) []TopAuthor
Click to show internal directories.
Click to hide internal directories.