Documentation
¶
Overview ¶
Package gitcheck reads what removing a checkout would lose, through git and the file system.
Index ¶
- type Files
- type Git
- func (g Git) Changed(ctx context.Context, dir string) (int, error)
- func (g Git) DirtyTracked(ctx context.Context, dir string) (int, error)
- func (g Git) FetchTracking(ctx context.Context, dir string, number int) error
- func (g Git) Head(ctx context.Context, dir string) (string, error)
- func (g Git) Ignored(ctx context.Context, dir string) (untracked, ignored []string, err error)
- func (g Git) Kept(ctx context.Context, dir string) (string, error)
- func (g Git) PRHolds(ctx context.Context, dir, prHead string) (bool, error)
- func (g Git) RemoteHasBranch(ctx context.Context, dir, remote, branch string) (bool, error)
- func (g Git) Tracking(ctx context.Context, dir string) (remote, branch string, err error)
- func (g Git) Unpushed(ctx context.Context, dir string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
Git is the workspaces' Remote and Tree over git.
func (Git) FetchTracking ¶
func (Git) RemoteHasBranch ¶
RemoteHasBranch reads the remote-tracking ref, which FetchTracking drops when the remote deleted the branch.