git

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogModule

func NewLogModule(opt *utils.ModuleOptions) sqlite.Module

NewLogModule returns a new `git log` virtual table

func NewRefModule

func NewRefModule(opt *utils.ModuleOptions) sqlite.Module

NewRefModule returns a new virtual table for listing git refs

func Register

func Register(ext *sqlite.ExtensionApi, opt *options.Options) (_ sqlite.ErrorCode, err error)

Register registers git related functionality as a SQLite extension

Types

type CloneFn added in v0.5.1

type CloneFn struct {
	Options *utils.ModuleOptions
}

CloneFn is essentially a no-op that's useful for cloning remote repos by opening them (and calling the Locator)

func NewCloneFn added in v0.5.1

func NewCloneFn(opt *utils.ModuleOptions) *CloneFn

NewCloneFn returns a new CloneFn implementation

func (*CloneFn) Apply added in v0.5.1

func (fn *CloneFn) Apply(c *sqlite.Context, values ...sqlite.Value)

func (*CloneFn) Args added in v0.5.1

func (*CloneFn) Args() int

func (*CloneFn) Deterministic added in v0.5.1

func (*CloneFn) Deterministic() bool

type CommitFromTagFn

type CommitFromTagFn struct{}

CommitFromTagFn implements the COMMIT_FROM_TAG(...) sql function

func (*CommitFromTagFn) Apply

func (*CommitFromTagFn) Apply(c *sqlite.Context, values ...sqlite.Value)

func (*CommitFromTagFn) Args

func (*CommitFromTagFn) Args() int

func (*CommitFromTagFn) Deterministic

func (*CommitFromTagFn) Deterministic() bool

Directories

Path Synopsis
Package native provides virtual table implementations for git tables using libgit2 via the git2go bindings (https://github.com/libgit2/git2go).
Package native provides virtual table implementations for git tables using libgit2 via the git2go bindings (https://github.com/libgit2/git2go).

Jump to

Keyboard shortcuts

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