gitlog

package
v3.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	// SHA the git commit sha of the commit
	SHA string
	// Author the author name and email of the commit
	Author string
	// Date the date of the commit
	Date string
	// Comment the full commit comment
	Comment string
}

Commit represents a git commit returned from 'git log`

func ParseGitLog

func ParseGitLog(text string) []*Commit

ParseGitLog parses the output of git log into commits with SHA, author, date and comments

Jump to

Keyboard shortcuts

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