dxo

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 1 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

func (ObjectID) Bytes added in v0.0.3

func (id ObjectID) Bytes() []byte

Bytes ...

func (ObjectID) Size added in v0.0.3

func (id ObjectID) Size() int

Size ...

func (ObjectID) String added in v0.0.3

func (id ObjectID) String() string

type PackID

type PackID HexID

PackID 表示git的包ID

func (PackID) Bytes added in v0.0.3

func (id PackID) Bytes() []byte

Bytes ...

func (PackID) Size added in v0.0.3

func (id PackID) Size() int

Size ...

func (PackID) String added in v0.0.3

func (id PackID) String() string

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