Documentation
¶
Index ¶
- func Evidence(ctx context.Context, root, relPath string) domain.VersionEvidence
- func HasSnapshot(root string) bool
- func HeadCommit(ctx context.Context, root string) (string, error)
- func RestorePathFromCommit(ctx context.Context, root, commit, path string) error
- func Snapshot(ctx context.Context, root, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasSnapshot ¶
func HeadCommit ¶
HeadCommit 返回当前 HEAD commit hash;没有提交时返回空串和 nil。
func RestorePathFromCommit ¶
RestorePathFromCommit 把指定路径的工作区内容恢复到给定 commit。 它是 proof loop 可逆 apply 的底层恢复原语:apply 前已 git commit, 坏 apply 后用 commit hash 把单个文件 checkout 回来,不发明内容。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.