diff --git a/cg-commit b/cg-commit --- a/cg-commit +++ b/cg-commit @@ -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