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

1 messages from 2006-01-19 to 2006-01-19. Participants: Paolo 'Blaisorblade' Giarrusso.
Thread: https://gitlist.dev/t/3105

## Paolo 'Blaisorblade' Giarrusso, 2006-01-19 21:16

Subject: [PATCH] Unclutter cg status with --directory as GIT does
Message-ID: <20060119211646.28186.18564.stgit@zion.home.lan>
URL: https://gitlist.dev/e/20060119211646.28186.18564.stgit%40zion.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]

```
