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

[PATCH] cg-status: fix detection of dissappeared files

From
Jonas Fonseca <fonseca@diku.dk>
Date
May 30, 2006, 12:48 UTC
Message-ID
<20060530124853.GA26416@diku.dk>

fatal: ambiguous argument 'manual.txt': unknown revision or path not in the working tree. Use '--' to separate paths from revisions

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
diff --git a/cg-status b/cg-status
index e2f97dd..aee5ff0 100755
--- a/cg-status
+++ b/cg-status
@@ -239,7 +239,7 @@ if [ "$workstatus" ]; then
 		git-diff-index HEAD -- "${basepath:-.}" | cut -f5- -d' ' | 
 		while IFS=$'\t' read -r mode file; do
 			if [ "$mode" = D ]; then
-				[ "$(git-diff-files "$file")" ] && mode=!
+				[ "$(git-diff-files -- "$file")" ] && mode=!
 			elif [ "$mode" = M ] && [ "$commitignore" ]; then
 				fgrep -qx "$file" "$_git/commit-ignore" && mode=m
 			fi
-- 
Jonas Fonseca
Message 1 of 1 in “cg-status: fix detection of dissappeared files”
  1. cg-status: fix detection of dissappeared filesJonas Fonseca, May 30, 2006

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.