porcelain

package
v0.0.0-...-f32120d Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(paths []string) error

Add file to repository and add index to stage area

func Commit

func Commit(w io.Writer, option *CommitOption) error

func Init

func Init(w io.Writer, root string) error

Init

func Log

func Log(w io.Writer, oid common.Hash, option *LogOption) error

func Remove

func Remove(paths []string, option *RemoveOption) error

Types

type CommitOption

type CommitOption struct {
	Message string
}

type LogOption

type LogOption struct {
	Stat bool
}

type RemoveOption

type RemoveOption struct {
	Recursive bool
}

Jump to

Keyboard shortcuts

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