Documentation
¶
Overview ¶
Package gitcp takes git snapshots of a working tree before each agent turn, so changes can be shown (/diff) and rolled back (/undo) without touching the user's branch, index or stash.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
Diff returns a patch from `from` (a commit, or "HEAD") to the current working tree, including new untracked files.
func Restore ¶
Restore puts the working tree back to the snapshot: changed and deleted files are restored, files created since are removed. The index and branch are left alone.
Types ¶
Click to show internal directories.
Click to hide internal directories.