Documentation ¶
Index ¶
- type Core
- type Driver
- type Factory
- type Finder
- type GitConfig
- type GitHEAD
- type GitHooks
- type GitIndex
- type GitInfo
- type GitLogs
- type GitModules
- type GitObjects
- type GitPWD
- type GitRefs
- type GitSubmodule
- type GitWorkspace
- type GitWorktree
- type GitWorktrees
- type Location
- type Locator
- type Manager
- type ObjectsInfo
- type ObjectsPack
- type Viewport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core interface { util.LocalDirectory Config() GitConfig HEAD() GitHEAD Hooks() GitHooks Index() GitIndex Logs() GitLogs Modules() GitModules Objects() GitObjects Refs() GitRefs Worktrees() GitWorktrees }
Core 是仓库的核心目录 ref to the [.git] directory, or not if bare.
type GitHooks ¶
type GitHooks interface { util.LocalDirectory }
type GitInfo ¶
type GitInfo interface { util.LocalDirectory }
type GitLogs ¶
type GitLogs interface { util.LocalDirectory }
type GitModules ¶
type GitModules interface { util.LocalDirectory ListNames() []string GetSubmodule(name string) (GitSubmodule, error) CreateSubmodule(name string) (GitSubmodule, error) }
GitModules 表示git的模块集合
type GitObjects ¶
type GitObjects interface { util.LocalDirectory Info() ObjectsInfo Pack() ObjectsPack }
type GitRefs ¶
type GitRefs interface { util.LocalDirectory }
type GitSubmodule ¶
type GitSubmodule interface { util.LocalDirectory OpenViewport() (Viewport, error) }
GitSubmodule 表示一个git子模块
type GitWorkspace ¶
type GitWorkspace interface { util.LocalDirectory }
GitWorkspace aka WorkingDirectory
type GitWorktree ¶
type GitWorktree interface { util.LocalDirectory GetWorkspace() (GitWorkspace, error) OpenViewport() (Viewport, error) }
GitWorktree 是git工作树
type GitWorktrees ¶
type GitWorktrees interface { util.LocalDirectory ListNames() []string GetWorktree(name string) (GitWorktree, error) CreateWorktree(name string) (GitWorktree, error) Default() GitWorktree }
GitWorktrees 是git工作树的集合
type Location ¶
type Location struct { PWD fs.Path DotGit fs.Path WorkingDirectory fs.Path SubmoduleDirectory fs.Path WorktreeDirectory fs.Path CoreDirectory fs.Path }
Location 表示一个仓库视图的位置
type Manager ¶
type Manager interface { GetAllDrivers() []Driver FindDriver(uri lang.URI) (Driver, error) Open(uri lang.URI) (Viewport, error) }
Manager 是仓库管理器
type ObjectsInfo ¶
type ObjectsInfo interface { util.LocalDirectory }
type ObjectsPack ¶
type ObjectsPack interface { util.LocalDirectory }
type Viewport ¶
type Viewport interface { io.Closer GetWorkspace() (GitWorkspace, error) GetSubmodule() (GitSubmodule, error) GetWorktree() (GitWorktree, error) GetCore() Core GetPWD() GitPWD Objects() GitObjects Refs() GitRefs Config() GitConfig Index() GitIndex HEAD() GitHEAD }
Viewport 仓库的一个视图
Source Files ¶
- git_config.go
- git_context.go
- git_head.go
- git_hooks.go
- git_index.go
- git_info.go
- git_logs.go
- git_modules.go
- git_objects.go
- git_pwd.go
- git_refs.go
- git_repository.go
- git_repository_driver.go
- git_repository_factory.go
- git_repository_finder.go
- git_repository_locator.go
- git_repository_viewport.go
- git_workspace.go
- git_worktrees.go
Click to show internal directories.
Click to hide internal directories.