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

[PATCH] Unclutter cg status with --directory as GIT does

From
PGPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Date
Jan 19, 2006, 21:16 UTC
Message-ID
<20060119211646.28186.18564.stgit@zion.home.lan>
From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>

Pass the new --directory option (from git 1.1) to git-ls-others for list_untracked_files, as does git-status - it's very useful.

Probably this must be deferred to when the git 1.1 dependency is added, however please queue it for then.

Thanks.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---
 cg-Xlib |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cg-Xlib b/cg-Xlib
index 30e2ee9..539c885 100755
--- a/cg-Xlib
+++ b/cg-Xlib
@@ -206,7 +206,7 @@ list_untracked_files()
 		fi
 		EXCLUDE="$EXCLUDE --exclude-per-directory=.gitignore"
 	fi
-	git-ls-files -z --others $EXCLUDE
+	git-ls-files -z --others --directory $EXCLUDE
 }
 
 # Usage: showdate SECONDS TIMEZONE [FORMAT]
Message 1 of 1 in “Unclutter cg status with --directory as GIT does”
  1. Unclutter cg status with --directory as GIT doesPaolo 'Blaisorblade' Giarrusso, Jan 19, 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.