Documentation ¶
Overview ¶
This code comes from the go-git repository's unified encoder I've replicated it here so that I can access line types for rendering in HTML See https://github.com/go-git/go-git/blob/master/plumbing/format/diff/unified_encoder.go
Index ¶
- func WriteBranch(branch *plumbing.Reference, repository *git.Repository, repositoryName string, ...) error
- func WriteCommits(repository *git.Repository, repositoryName string, baseDir string) error
- func WriteIndex(branch *object.Commit, repository *git.Repository, repositoryName string, ...) error
- func WriteLog(branch *object.Commit, repository *git.Repository, repositoryName string, ...) error
- func WriteRefs(repository *git.Repository, repositoryName string, baseDir string) error
- func WriteTree(branch *object.Commit, repository *git.Repository, repositoryName string, ...) error
- type AuthorData
- type BaseData
- type BlobData
- type CommitData
- type Diff
- type DiffBlock
- type DiffBuilder
- type DiffType
- type File
- type FileMode
- type LogCommit
- type LogData
- type LogStats
- type NavData
- type NoteData
- type NoteMap
- type RefMap
- type RefType
- type ShortRef
- type TagData
- type TreeData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteBranch ¶
func WriteCommits ¶
func WriteCommits(repository *git.Repository, repositoryName string, baseDir string) error
func WriteIndex ¶
Types ¶
type CommitData ¶
type DiffBuilder ¶
type DiffBuilder struct {
// contains filtered or unexported fields
}
func NewDiffBuilder ¶
func NewDiffBuilder() *DiffBuilder
func (*DiffBuilder) Add ¶
func (self *DiffBuilder) Add(kind DiffType, text string)
func (*DiffBuilder) Append ¶
func (self *DiffBuilder) Append(blocks ...DiffBlock)
func (*DiffBuilder) Diff ¶
func (self *DiffBuilder) Diff() Diff
Click to show internal directories.
Click to hide internal directories.