ref: 60b5822dca47196b6bb02279974fcc01fb0f8b0d
parent: 80bca9e8fa64289e52841f66fbce62c0b4724b78
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jun 19 23:31:13 EDT 2020
If a file isn't committed, don't leave it in the removed list
--- a/add
+++ b/add
@@ -43,7 +43,8 @@
# git/walk doesn't think this came from
# a checkout.
if(! test -e $addpath)
- touch $addpath
+ if(~ $add 'tracked' || test -e /mnt/git/HEAD/tree/$f)
+ touch $addpath
rm -f $delpath
}
}