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

This PR updates the `ResetMode` enum to use doc comments for its
variants instead of line comments.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-04-01 18:19:29 -04:00 committed by GitHub
parent 4a252515b1
commit a1b53e91e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -161,13 +161,11 @@ pub struct Remote {
} }
pub enum ResetMode { pub enum ResetMode {
// reset the branch pointer, leave index and worktree unchanged /// Reset the branch pointer, leave index and worktree unchanged (this will make it look like things that were
// (this will make it look like things that were committed are now /// committed are now staged).
// staged)
Soft, Soft,
// reset the branch pointer and index, leave worktree unchanged /// Reset the branch pointer and index, leave worktree unchanged (this makes it look as though things that were
// (this makes it look as though things that were committed are now /// committed are now unstaged).
// unstaged)
Mixed, Mixed,
} }