gitiles_gerrit

package
v0.0.0-...-8ed7812 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	*gitiles_vfs.FS
}

FS implements vfs.FS using Gitiles and Gerrit.

func New

func New(wrapped *gitiles_vfs.FS) *FS

New returns a FS which can create a CL if files are changed.

func (*FS) CreateChange

func (fs *FS) CreateChange(ctx context.Context, g gerrit.GerritInterface, project, branch, commitMsg string, reviewers []string) (*gerrit.ChangeInfo, error)

CreateChange creates a CL with the changes to the FS.

func (*FS) HasChanges

func (fs *FS) HasChanges() bool

HasChanges returns true if the FS has changes.

func (*FS) MaybeCreateChange

func (fs *FS) MaybeCreateChange(ctx context.Context, g gerrit.GerritInterface, project, branch, commitMsg string, reviewers []string) (*gerrit.ChangeInfo, error)

MaybeCreateChange creates a CL if any changes were made.

Jump to

Keyboard shortcuts

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