{"thread":{"id":"760","subject":"[PATCH] Don't remove missing files in cg-commit","startedAt":"2005-05-29T20:01:37Z","lastAt":"2005-05-29T20:01:37Z","messageCount":1,"participants":["Dan Holmsand"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"4195","messageId":"d7d6ub$c5b$1@sea.gmane.org","threadId":"760","inReplyTo":null,"subject":"[PATCH] Don't remove missing files in cg-commit","fromName":"Dan Holmsand","fromEmail":"holmsand@gmail.com","sentAt":"2005-05-29T20:01:37Z","receivedAt":"2005-05-29T20:01:37Z","isPatch":true,"sender":{"key":"holmsand@gmail.com","avatar":"https://gravatar.com/avatar/5c722084bafd85e754a02efad01fe69107eb6f393253c49232c5c9f7faa974df?d=mp&s=160"},"body":"cg-commit presently wants to remove missing files, even if they haven't \nbeen cg-rm'd. This is due to a missing \"-m\" in the call to git-diff-cache.\n\nSigned-off-by: Dan Holmsand <holmsand@gmail.com>\n\n\n\ndiff --git a/cg-commit b/cg-commit\n--- a/cg-commit\n+++ b/cg-commit\n@@ -73,7 +73,7 @@ else\n \t# be committed along automagically as well.\n \n \tif [ ! \"$ignorecache\" ]; then\n-\t\teval changedfiles=($(git-diff-cache -r HEAD | cut -f 2 | \\\n+\t\teval changedfiles=($(git-diff-cache -r -m HEAD | cut -f 2 | \\\n \t\t\tsed -e 's/^/\"/' -e 's/$/\"/'))\n \t\tcommitfiles=($addedfiles $remfiles \"${changedfiles[@]}\")\n \tfi\n"}]}