git

package
v0.0.0-...-4f3ca93 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2018 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	ID          string    `json:"id"`
	Author      string    `json:"author"`
	Date        time.Time `json:"date"`
	Title       string    `json:"title"`
	Description string    `json:"description,omitempty"`

	Submodules map[string][]*Commit `json:"submodules,omitempty"`
}

type Manager

type Manager struct {
	*downloads.Module
	StorageDir string
	// contains filtered or unexported fields
}

func Create

func Create(manager *downloads.Manager, dir string) (*Manager, error)

func (*Manager) Open

func (m *Manager) Open(url string) (*Repository, error)

func (*Manager) OpenGitHub

func (m *Manager) OpenGitHub(owner, repo string) (*Repository, error)

type Repository

type Repository struct {
	*Manager
	// contains filtered or unexported fields
}

func (*Repository) Close

func (r *Repository) Close()

func (*Repository) GenerateChangelog

func (r *Repository) GenerateChangelog(commitHash, parentHash string) ([]*Commit, error)

Jump to

Keyboard shortcuts

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