git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Dan Holmsand <holmsand@gmail.com>
Date
May 29, 2005, 20:01 UTC
Message-ID
<d7d6ub$c5b$1@sea.gmane.org>

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>
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
Message 1 of 1 in “Don't remove missing files in cg-commit”
  1. Don't remove missing files in cg-commitDan Holmsand, May 29, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.