cmd

package
v0.0.0-...-f39f0c1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ancestor error = errors.New("Commit is an ancestor")
View Source
var NonAncestor error = errors.New("Commit not an ancestor")

Functions

func Add

func Add(c *git.Client, args []string) error

func Apply

func Apply(c *git.Client, args []string) error

func Archive

func Archive(c *git.Client, args []string) error

func Branch

func Branch(c *git.Client, args []string) error

func CatFile

func CatFile(c *git.Client, args []string) error

Parses the arguments from git-cat-file as they were passed on the commandline and calls git.CatFiles

func CheckIgnore

func CheckIgnore(c *git.Client, args []string) error

func Checkout

func Checkout(c *git.Client, args []string) error

Implements the git checkout command line parsing.

func CheckoutIndexCmd

func CheckoutIndexCmd(c *git.Client, args []string) error

Parses the command arguments from args (usually from os.Args) into a CheckoutIndexOptions and calls CheckoutIndex.

func Clean

func Clean(c *git.Client, args []string) error

func Clone

func Clone(c *git.Client, args []string) error

func Commit

func Commit(c *git.Client, args []string) (string, error)

Commit implements the command "git commit" in the repository pointed to by c.

func CommitTree

func CommitTree(c *git.Client, args []string) (git.CommitID, error)

func Config

func Config(c *git.Client, args []string) error

func Diff

func Diff(c *git.Client, args []string) error

func DiffFiles

func DiffFiles(c *git.Client, args []string) error

func DiffIndex

func DiffIndex(c *git.Client, args []string) error

func DiffTree

func DiffTree(c *git.Client, args []string) error

func Fetch

func Fetch(c *git.Client, args []string) error

func FetchPack

func FetchPack(c *git.Client, args []string) error

func Fsck

func Fsck(c *git.Client, args []string) error

func Grep

func Grep(c *git.Client, args []string) error

func HashObject

func HashObject(c *git.Client, args []string)

func IndexPack

func IndexPack(c *git.Client, args []string) (err error)

Parses the arguments from git-unpack-objects as they were passed on the commandline and calls git.CatFiles

func Init

func Init(c *git.Client, args []string) error

func Log

func Log(c *git.Client, args []string) error

func LsFiles

func LsFiles(c *git.Client, args []string) error

Parses the arguments from git-ls-files as if they were passed on the commandline and calls git.LsFiles

func LsRemote

func LsRemote(c *git.Client, args []string) error

func LsTree

func LsTree(c *git.Client, args []string) error

func Merge

func Merge(c *git.Client, args []string) error

func MergeBase

func MergeBase(c *git.Client, args []string) (git.CommitID, error)

func MergeFile

func MergeFile(c *git.Client, args []string) error

func MkTree

func MkTree(c *git.Client, args []string) error

func Mktag

func Mktag(c *git.Client, args []string) (git.Sha1, error)

Implements the git mktag command line parsing.

func NewMultiStringValue

func NewMultiStringValue(p *[]string) *multiStringValue

func PackObjects

func PackObjects(c *git.Client, input io.Reader, args []string) (rv error)

func Pull

func Pull(c *git.Client, args []string) error

func Push

func Push(c *git.Client, args []string) error

func ReadTree

func ReadTree(c *git.Client, args []string) error

func Reflog

func Reflog(c *git.Client, args []string) error

func Remote

func Remote(c *git.Client, args []string) error

func Reset

func Reset(c *git.Client, args []string) error

func RevList

func RevList(c *git.Client, args []string) error

func RevParse

func RevParse(c *git.Client, args []string) ([]git.ParsedRevision, git.RevParseOptions, error)

func Revert

func Revert(c *git.Client, args []string) error

func Rm

func Rm(c *git.Client, args []string) error

func SendPack

func SendPack(c *git.Client, args []string) error

func Show

func Show(c *git.Client, args []string) error

func ShowRef

func ShowRef(c *git.Client, args []string) error

func Status

func Status(c *git.Client, args []string) error

func Submodule

func Submodule(c *git.Client, args []string) error

func SymbolicRef

func SymbolicRef(c *git.Client, args []string) (git.RefSpec, error)

func Tag

func Tag(c *git.Client, args []string) error

Implements the git tag command line parsing.

func UnpackObjects

func UnpackObjects(c *git.Client, args []string) error

Parses the arguments from git-unpack-objects as they were passed on the commandline and calls git.CatFiles

func UpdateIndex

func UpdateIndex(c *git.Client, args []string) error

func UpdateRef

func UpdateRef(c *git.Client, args []string) error

func Var

func Var(c *git.Client, args []string) error

func WriteTree

func WriteTree(c *git.Client, args []string) (string, error)

WriteTree implements the git write-tree command on the Git repository pointed to by c.

Types

This section is empty.

Jump to

Keyboard shortcuts

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