Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-vcs/src/status.rs')
-rw-r--r--helix-vcs/src/status.rs22
1 files changed, 10 insertions, 12 deletions
diff --git a/helix-vcs/src/status.rs b/helix-vcs/src/status.rs
index f3433490..0240cad1 100644
--- a/helix-vcs/src/status.rs
+++ b/helix-vcs/src/status.rs
@@ -1,18 +1,16 @@
use std::path::{Path, PathBuf};
+/// States for a file having been changed.
pub enum FileChange {
- Untracked {
- path: PathBuf,
- },
- Modified {
- path: PathBuf,
- },
- Conflict {
- path: PathBuf,
- },
- Deleted {
- path: PathBuf,
- },
+ /// Not tracked by the VCS.
+ Untracked { path: PathBuf },
+ /// File has been modified.
+ Modified { path: PathBuf },
+ /// File modification is in conflict with a different update.
+ Conflict { path: PathBuf },
+ /// File has been deleted.
+ Deleted { path: PathBuf },
+ /// File has been renamed.
Renamed {
from_path: PathBuf,
to_path: PathBuf,