file

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package file implements the file transport protocol.

Index

Constants

This section is empty.

Variables

DefaultClient is the default local client.

Functions

func NewClient

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

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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