vcs

package
v1.35.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	Revision    string    // Optional.
	CommitTime  time.Time // Optional.
	Uncommitted bool      // Required.
}

Status is the current state of a local repository.

func GetRevision

func GetRevision(appRoot string) Status

GetRevision returns the version control system (VCS) revision information for the Encore application.

If there is an error getting the revision information, no revision information is returned and the App is flagged as having uncommitted files. This will happen most likely because no supported VCS system can be found.

Supported VCS systems include;

  • Hg
  • Git
  • Svn
  • Bzr
  • Fossil

Jump to

Keyboard shortcuts

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