native

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package native provides virtual table implementations for git tables using libgit2 via the git2go bindings (https://github.com/libgit2/git2go). Some operations are more performant using libgit2 vs go-git, namely, what's involved in the `stats`, `files` and `blame` tables, which are implemented in this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlameModule

func NewBlameModule(options *utils.ModuleOptions) sqlite.Module

NewBlameModule returns the implementation of a table-valued-function for accessing git blame

func NewFilesModule

func NewFilesModule(options *utils.ModuleOptions) sqlite.Module

NewFilesModule returns the implementation of a table-valued-function for accessing the content of files in git

func NewStatsModule

func NewStatsModule(options *utils.ModuleOptions) sqlite.Module

NewStatsModule returns the implementation of a table-valued-function for git stats

Types

type GitFileModeObjectType added in v0.6.1

type GitFileModeObjectType string
const (
	GitFileModeObjectTypeUnknown     GitFileModeObjectType = "unknown"
	GitFileModeObjectTypeNone        GitFileModeObjectType = "none"
	GitFileModeObjectTypeRegularFile GitFileModeObjectType = "regular_file"
	GitFileModeOjectTypeSymbolicLink GitFileModeObjectType = "symbolic_link"
	GitFileModeOjectTypeGitLink      GitFileModeObjectType = "git_link"
)

Jump to

Keyboard shortcuts

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