plugins/file/commands/restore architecture

Implements the file restore command that restores a single workspace-relative git file to HEAD via git restore, deleting untracked/newly-added files and re-checking tracked files.

Architectural role

Targeted single-file HEAD restore alongside diff/history/commit/init. It validates workspace containment, executes Git, and adapts results for CLI and web tree/file views.

Source map

Integration details