git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]  Don't remove missing files in cg-commit
@ 2005-05-29 20:01 Dan Holmsand
  0 siblings, 0 replies; only message in thread
From: Dan Holmsand @ 2005-05-29 20:01 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

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>


[-- Attachment #2: cg-commit.patch.txt --]
[-- Type: text/plain, Size: 396 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-29 20:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-29 20:01 [PATCH] Don't remove missing files in cg-commit Dan Holmsand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).