git-ls-files: add --exclude-standard

This provides a way for scripts to get at the new standard exclude
function.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King
2007-11-15 02:04:30 -05:00
committed by Junio C Hamano
parent a777e9ca54
commit 8e7b07c8a7
3 changed files with 13 additions and 6 deletions

View File

@ -37,10 +37,7 @@ sub list_untracked {
chomp $_;
$_;
}
run_cmd_pipe(qw(git ls-files --others
--exclude-per-directory=.gitignore),
"--exclude-from=$GIT_DIR/info/exclude",
'--', @_);
run_cmd_pipe(qw(git ls-files --others --exclude-standard --), @_);
}
my $status_fmt = '%12s %12s %s';