git

package
v0.0.0-...-52c3d96 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

type FileReader struct{}

func (FileReader) Exists

func (reader FileReader) Exists(path string) (bool, error)

func (FileReader) ReadFile

func (reader FileReader) ReadFile(path string) (string, error)

func (FileReader) ReadFirstLine

func (reader FileReader) ReadFirstLine(path string) (string, error)

type GitChanges

type GitChanges struct {
	// contains filtered or unexported fields
}

func (GitChanges) ConflictedFilesCount

func (changes GitChanges) ConflictedFilesCount() int

func (GitChanges) HasChanges

func (changes GitChanges) HasChanges() bool

func (GitChanges) Init

func (changes GitChanges) Init(repo *git.Repository) (*GitChanges, error)

func (GitChanges) ModifiedFilesCount

func (changes GitChanges) ModifiedFilesCount() int

func (GitChanges) StagedFilesCount

func (changes GitChanges) StagedFilesCount() int

func (GitChanges) UntrackedFilesCount

func (changes GitChanges) UntrackedFilesCount() int

type GitHead

type GitHead struct {
	// contains filtered or unexported fields
}

func (GitHead) Init

func (head GitHead) Init(repo *git.Repository) *GitHead

func (GitHead) IsDetached

func (head GitHead) IsDetached() bool

func (GitHead) Name

func (head GitHead) Name() (string, error)

type GitStatus

type GitStatus struct {
	// contains filtered or unexported fields
}

func (GitStatus) IsApplicable

func (gitStatus GitStatus) IsApplicable() bool

func (GitStatus) Prompt

func (plugin GitStatus) Prompt(parameters []string) (string, error)

type RepoState

type RepoState git.RepositoryState

func (RepoState) IsBisecting

func (state RepoState) IsBisecting() bool

func (RepoState) IsCherrypicking

func (state RepoState) IsCherrypicking() bool

func (RepoState) IsMerging

func (state RepoState) IsMerging() bool

func (RepoState) IsRebasing

func (state RepoState) IsRebasing() bool

func (RepoState) IsReverting

func (state RepoState) IsReverting() bool

Jump to

Keyboard shortcuts

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