git

package
v4.0.0-rc5+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action int
const (
	Insert Action = iota
	Delete
	Modify
)

func (Action) String

func (a Action) String() string

type Change

type Change struct {
	Action
	From ChangeEntry
	To   ChangeEntry
}

func DiffTree

func DiffTree(a, b *object.Tree) ([]*Change, error)

func (*Change) Files

func (c *Change) Files() (from, to *object.File, err error)

func (*Change) String

func (c *Change) String() string

type ChangeEntry

type ChangeEntry struct {
	Name      string
	Tree      *object.Tree
	TreeEntry object.TreeEntry
}

type Changes

type Changes []*Change

func (Changes) Len

func (c Changes) Len() int

func (Changes) Less

func (c Changes) Less(i, j int) bool

func (Changes) String

func (c Changes) String() string

func (Changes) Swap

func (c Changes) Swap(i, j int)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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