go-git.v4: gopkg.in/src-d/go-git.v4/plumbing/transport/file Index | Files

package file

import "gopkg.in/src-d/go-git.v4/plumbing/transport/file"

Package file implements the file transport protocol.

Index

Package Files

client.go server.go

Variables

var DefaultClient = NewClient(
    transport.UploadPackServiceName,
    transport.ReceivePackServiceName,
)

DefaultClient is the default local client.

func NewClient Uses

func NewClient(uploadPackBin, receivePackBin string) transport.Transport

NewClient returns a new local client using the given git-upload-pack and git-receive-pack binaries.

func ServeReceivePack Uses

func ServeReceivePack(path string) error

ServeReceivePack serves a git-receive-pack request using standard output, input and error. This is meant to be used when implementing a git-receive-pack command.

func ServeUploadPack Uses

func ServeUploadPack(path string) error

ServeUploadPack serves a git-upload-pack request using standard output, input and error. This is meant to be used when implementing a git-upload-pack command.

Package file imports 12 packages (graph) and is imported by 3 packages. Updated 2019-09-01. Refresh now. Tools for package owners.