util

package
v0.0.0-...-af6ef3e Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DBName string = ".got.db"

The file to be used as an object store

Variables

View Source
var CURRENT []byte

The key that should always point to the current revision that the working copy is based on.

View Source
var HEADS []byte

This key should point to a list of all heads in the repository

View Source
var INFO []byte

The name of the INFO db Bucket

View Source
var OBJECTS []byte

The name of the bucket containing OBJECTS

Functions

func DebugLog

func DebugLog(a string)

DebugLog prints strings iff the local variable debug is set

func IgnorePath

func IgnorePath(path string) bool

IgnorePath returns true if a file/directory should be ignored

func OpenDB

func OpenDB() *bolt.DB

Tries to open the database, printing approproate errors if it doesn't exist, or could not be opened.

Types

This section is empty.

Jump to

Keyboard shortcuts

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