Skip to contentSkip to conversation

Don't remove missing files in cg-commit

PATCH New Dan Holmsand 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Don't remove missing files in cg-commit

cg-commit presently wants to remove missing files, even if they haven't been cg-rm'd. This is due to a missing "-m" in the call to git-diff-cache.

cg-commit +1 -1
@@ -73,7 +73,7 @@ else
 	# be committed along automagically as well.
 
 	if [ ! "$ignorecache" ]; then
-		eval changedfiles=($(git-diff-cache -r HEAD | cut -f 2 | \
+		eval changedfiles=($(git-diff-cache -r -m HEAD | cut -f 2 | \
 			sed -e 's/^/"/' -e 's/$/"/'))
 		commitfiles=($addedfiles $remfiles "${changedfiles[@]}")
 	fi