tree

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTreeEntryPathCommitID

func GetTreeEntryPathCommitID(ctx context.Context, repoPath, revision string, treeEntryPath string) (*object.ID, error)

Types

type BlameTreeEntry

type BlameTreeEntry struct {
	*Entry
	//FullPath string
	CommitObj *commit.Object `json:"last_commit"`
}

func ParseBlameTree

func ParseBlameTree(ctx context.Context, repoPath, revision string, treePath string) ([]*BlameTreeEntry, error)

type Entry

type Entry struct {
	Mode object.Mode `json:"mode"`
	Type object.Type `json:"type"`
	Oid  object.ID   `json:"id"`
	Path string      `json:"path"`
}

func ParseTree

func ParseTree(ctx context.Context, repoPath, revision string, treePath string) ([]*Entry, error)

func ParseTreeLine

func ParseTreeLine(treeLine string) (*Entry, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳