From: Matt Porter Date: Tue, 03 May 2005 00:10:42 GMT Subject: [PATCH] Add exclude file support to cg-status Message-ID: <20050502171042.A24299@cox.net> 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 --- 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% *};