model

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	Name   string     `json:"name"`
	Path   string     `json:"path"`
	Status RepoStatus `json:"status"`
}

Repo represents a git repository with its metadata and status

type RepoStatus

type RepoStatus struct {
	Branch     string    `json:"branch"`
	Ahead      int       `json:"ahead"`
	Behind     int       `json:"behind"`
	Staged     int       `json:"staged"`
	Unstaged   int       `json:"unstaged"`
	Untracked  int       `json:"untracked"`
	LastCommit time.Time `json:"last_commit"`
	IsDirty    bool      `json:"is_dirty"`
	ScanError  string    `json:"scan_error,omitempty"`
}

RepoStatus contains the git status information for a repository

Jump to

Keyboard shortcuts

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