scm

package
v0.0.0-...-8491e4a Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCM_NONE = iota
	SCM_SVN
	SCM_HG
	SCM_GIT
)
View Source
const (
	STATUS_NONE = 0
	// lower nybble is basic status
	STATUS_DELETED = 1 << iota
	STATUS_RENAMED
	STATUS_ADDED
	STATUS_MODIFIED
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Codes    string
	Bits     uint8
	Original string
}

Entry ... This holds the SCM values for a single folder entry.

type Status

type Status struct {
	Manager  int
	MaxWidth int
	Entries  map[string]*Entry
	Deleted  map[string]*Entry
}

Status ... This holds the SCM status for all entries in the folder.

func GetScmStatus

func GetScmStatus(cwd string) Status

GetScmStatus ... This is a single entry point for detecting the presence of one of the three most popular SCM system. If one is found, then the status of the current folder within context of that manager will be returned to the caller.

Jump to

Keyboard shortcuts

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