status

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Index             Scope
	Worktree          Scope
	UntrackedPathList []string
}

func Status

func Status(ctx context.Context, workTreeDir string) (r Result, err error)

Status returns Result with path lists of untracked files and modified files for index and worktree. The function counts each file status as Modified if it is not Unmodified or Untracked ([ADU] == M). The function does not work with ignored, renamed and copied files.

func (*Result) IndexWithWorktree

func (r *Result) IndexWithWorktree() Scope

type Scope

type Scope struct {
	PathList   []string
	Submodules []submodule
}

Jump to

Keyboard shortcuts

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