gitxtest

package
v0.0.0-...-931a9c7 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 15 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 {
	ID      string      `yaml:"id"`
	Message string      `yaml:"message"`
	Author  string      `yaml:"author,omitempty"`
	Parent  string      `yaml:"parent,omitempty"`
	Parents []string    `yaml:"parents,omitempty"`
	Branch  string      `yaml:"branch,omitempty"`
	Tag     string      `yaml:"tag,omitempty"`
	Tags    []string    `yaml:"tags,omitempty"`
	Files   FileContent `yaml:"files"`
}

type FileContent

type FileContent map[string]string

type GitHistory

type GitHistory struct {
	Commits []Commit `yaml:"commits"`
}

type Repository

type Repository struct {
	*git.Repository
	Commits map[string]plumbing.Hash
}

func CreateRepo

func CreateRepo(commits []Commit, opts *gitx.RepositoryOptions) (*Repository, error)

func CreateRepoFromYAML

func CreateRepoFromYAML(content string, opts *gitx.RepositoryOptions) (*Repository, error)

Jump to

Keyboard shortcuts

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