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.