Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
{DO i removed "Removed (still exists)"}
{DM i removed "Removed (but modified)"}
+ {UD i merge "Merge conflicts"}
{UM i merge "Merge conflicts"}
{U_ i merge "Merge conflicts"}
} {
set pathList [list]
set after {}
foreach path $paths {
- switch -- [lindex $file_states($path) 0] {
+ switch -glob -- [lindex $file_states($path) 0] {
AM -
AD -
MM -
- UM -
- U_ -
+ U? -
_M -
_D -
_O {
A_ -
M_ -
DD -
- D_ {
+ DO -
+ DM {
update_indexinfo \
"Removing [short_path $path] from commit" \
[list $path] \