Archived
Hard restore with X asks before dropping staged pins
X dropped staged pins without a question, including the selected submodule's own pin, which the loss check didn't count. A staged pin is a decision, and X sits one Shift away from x, so dropped staged pins now count as a loss and make X ask (D31, amends D30). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -117,9 +117,9 @@ something would be lost, you are asked first:
|
||||
submodule with a staged pin, `x` first asks whether to restore to the staged
|
||||
pin (`s`) or the committed one (`c`, which unstages it).
|
||||
|
||||
`X` is a hard restore: it goes to the committed pins without asking which
|
||||
one, and also drops the staged pins of submodules below the selection,
|
||||
which `x` keeps where it can. It still asks if work would be lost.
|
||||
`X` restores to the committed pins without asking which one, and also
|
||||
drops the staged pins of submodules below the selection, which `x` keeps
|
||||
where it can. It asks if work or a staged pin would be lost.
|
||||
|
||||
### Switch a branch with `b`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user