gitcheck

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gitcheck reads what removing a checkout would lose, through git and the file system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Files

type Files struct{}

Files reads the file system.

func (Files) Exists

func (Files) Exists(path string) bool
func (Files) Link(path string) bool

func (Files) Repos

func (Files) Repos(dir string) ([]string, error)

func (Files) Same

func (f Files) Same(a, b string) (bool, error)

Same compares regular files by content, links by target and directories entry by entry; any other kind, or a missing side, is not the same.

type Git

type Git struct{ G gitx.Git }

Git is the workspaces' Remote and Tree over git.

func (Git) Changed

func (g Git) Changed(ctx context.Context, dir string) (int, error)

func (Git) DirtyTracked

func (g Git) DirtyTracked(ctx context.Context, dir string) (int, error)

func (Git) FetchTracking

func (g Git) FetchTracking(ctx context.Context, dir string, number int) error

func (Git) Head

func (g Git) Head(ctx context.Context, dir string) (string, error)

func (Git) Ignored

func (g Git) Ignored(ctx context.Context, dir string) (untracked, ignored []string, err error)

func (Git) Kept

func (g Git) Kept(ctx context.Context, dir string) (string, error)

func (Git) PRHolds

func (g Git) PRHolds(ctx context.Context, dir, prHead string) (bool, error)

func (Git) RemoteHasBranch

func (g Git) RemoteHasBranch(ctx context.Context, dir, remote, branch string) (bool, error)

RemoteHasBranch reads the remote-tracking ref, which FetchTracking drops when the remote deleted the branch.

func (Git) Tracking

func (g Git) Tracking(ctx context.Context, dir string) (remote, branch string, err error)

func (Git) Unpushed

func (g Git) Unpushed(ctx context.Context, dir string) (int, error)

Jump to

Keyboard shortcuts

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