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 ¶
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.
Click to show internal directories.
Click to hide internal directories.