git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add exclude file support to cg-status
@ 2005-05-03  0:10 Matt Porter
  2005-05-03  1:09 ` Junio C Hamano
  2005-05-08  1:50 ` Petr Baudis
  0 siblings, 2 replies; 9+ messages in thread
From: Matt Porter @ 2005-05-03  0:10 UTC (permalink / raw)
  To: Petr Baudis; +Cc: git

Adds a trivial per-repository exclude file implementation for
cg-status on top of the new git-ls-files option.

Signed-off-by: Matt Porter <mporter@kernel.crashing.org>

--- 002c6f1e4924965e2101d2e6447855f10c55df41/cg-status  (mode:100755 sha1:9e7f0e59284a3d15cda35bbd5579c44d8eda05d5)
+++ 1b8c5395679e5c04734b1c86445a6355124ada7e/cg-status  (mode:100755 sha1:6669e36f5ff5d5964882b58ba43a5dcab4fd7fc6)
@@ -7,8 +7,14 @@
 
 . cg-Xlib
 
+EXCLUDEFILE=.git/exclude
+EXCLUDE=
+if [ -f $EXCLUDEFILE ]; then
+	EXCLUDE="--exclude-from=$EXCLUDEFILE"
+fi
+
 {
-	git-ls-files -z -t --others --deleted --unmerged
+	git-ls-files -z -t --others --deleted --unmerged $EXCLUDE
 } | sort -z -k 2 | xargs -0 sh -c '
 while [ "$1" ]; do
 	tag=${1% *};

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-05-08 23:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-03  0:10 [PATCH] Add exclude file support to cg-status Matt Porter
2005-05-03  1:09 ` Junio C Hamano
2005-05-03  2:33   ` Matt Porter
2005-05-03  4:15     ` Junio C Hamano
2005-05-03  4:21       ` Matt Porter
2005-05-03  4:27   ` Matt Porter
2005-05-08  1:50 ` Petr Baudis
2005-05-08 23:28   ` Junio C Hamano
2005-05-08 23:42     ` Petr Baudis

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).