dotgitreview

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

README

dotgitreview

This package provides a simple wrapper around .gitreview files.

.gitreview is a file that is used by the Gerrit Code Review system to configure the git repository. It is used to configure the remote repository and the branch to push to.

The .gitreview file is located in the root of the repository and is used by the git review command.

Example

[gerrit]
host=review.example.com
port=29418
project=example.git
defaultbranch=master

References

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitReview

type GitReview struct {
	Host       string
	Port       string
	Project    string
	RawProject string
}

GitReview represents a .gitreview file.

func ForCWD

func ForCWD() (*GitReview, error)

ForCWD returns the GitReview file for the current working directory.

func ForDirectory

func ForDirectory(dir string) (*GitReview, error)

ForDirectory returns the GitReview file for the given directory.

Jump to

Keyboard shortcuts

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