threads / patch / 760

patchDon't remove missing files in cg-commit

Subject: [PATCH] Don't remove missing files in cg-commit

## tl;dr

One message between May 29, 2005 and May 29, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Dan Holmsand· May 29, 2005, 20:01 UTC · lore

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.

Signed-off-by: Dan Holmsand <holmsand@gmail.com>
Show changes to cg-commit +1 −1
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

← back to recent threads