dxo

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	Parents   []ObjectID
	Author    *User
	Committor *User
	Content   string
}

Commit ...

type HexID

type HexID string

HexID 表示git的一个 hash 值

func (HexID) Bytes

func (id HexID) Bytes() []byte

Bytes ...

func (HexID) Size

func (id HexID) Size() int

Size ...

func (HexID) String

func (id HexID) String() string

type ObjectID

type ObjectID HexID

ObjectID 表示git的 object-ID

type PackID

type PackID HexID

PackID 表示git的包ID

type Properties

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

Properties 表示属性文档格式,例如 .git/config 文件

func (*Properties) Clear

func (inst *Properties) Clear()

Clear ...

func (*Properties) Export

func (inst *Properties) Export(dst map[string]string) map[string]string

Export ...

func (*Properties) Get

func (inst *Properties) Get(name string) string

Get ...

func (*Properties) Import

func (inst *Properties) Import(src map[string]string)

Import ...

func (*Properties) Set

func (inst *Properties) Set(name, value string)

Set ...

func (*Properties) Trim

func (inst *Properties) Trim()

Trim ...

type ReferenceName

type ReferenceName string

ReferenceName is the name for .git/refs/*

func (ReferenceName) Normalize

func (v ReferenceName) Normalize() ReferenceName

Normalize ...

func (ReferenceName) String

func (v ReferenceName) String() string

type Tag

type Tag struct {
	Target    ObjectID
	Author    *User
	Committor *User
	Content   string
}

Tag ...

type Tree

type Tree struct {
	Items []*TreeItem
}

Tree ...

type TreeItem

type TreeItem struct {
	Name string
	ID   ObjectID // todo ...
	Mode int
}

TreeItem ...

type User

type User struct {
	Name  string
	Email string
}

User ...

Jump to

Keyboard shortcuts

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