Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

git: Use doc comments for `ResetMode` variants (#27882)

Marshall Bowersa1b53e91e797
diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs
index 17f853589de..40a46288ee6 100644
--- a/crates/git/src/repository.rs
+++ b/crates/git/src/repository.rs
@@ -161,13 +161,11 @@ pub struct Remote {
}
pub enum ResetMode {
- // reset the branch pointer, leave index and worktree unchanged
- // (this will make it look like things that were committed are now
- // staged)
+ /// Reset the branch pointer, leave index and worktree unchanged (this will make it look like things that were
+ /// committed are now staged).
Soft,
- // reset the branch pointer and index, leave worktree unchanged
- // (this makes it look as though things that were committed are now
- // unstaged)
+ /// Reset the branch pointer and index, leave worktree unchanged (this makes it look as though things that were
+ /// committed are now unstaged).
Mixed,
}