All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] git-clean: consider core.excludesfile
@ 2007-11-14  7:40 shunichi fuji
  2007-11-14  8:58 ` Junio C Hamano
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: shunichi fuji @ 2007-11-14  7:40 UTC (permalink / raw)
  To: git

git-clean used "git ls-files" and "git ls-files" don't consider
core.excludesfile.
i add few lines.

--- /usr/bin/git-clean  2007-11-14 08:26:20.000000000 +0900
+++ git-clean   2007-11-14 09:43:03.000000000 +0900
@@ -81,9 +81,14 @@
       if [ "$ignoredonly" ]; then
               excl="$excl --ignored"
       fi
+       core_excl="`git-config core.excludesfile`"
+       if [ -f "$core_excl" ]; then
+               core_excl_info="--exclude-from=$core_excl"
+       fi
 fi

-git ls-files --others --directory $excl ${excl_info:+"$excl_info"} -- "$@" |
+git ls-files --others --directory $excl ${excl_info:+"$excl_info"} \
+${core_excl_info:+"$core_excl_info"} -- "$@" |
 while read -r file; do
       if [ -d "$file" -a ! -L "$file" ]; then
               if [ -z "$cleandir" ]; then

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

end of thread, other threads:[~2007-11-14 10:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-14  7:40 [PATCH] git-clean: consider core.excludesfile shunichi fuji
2007-11-14  8:58 ` Junio C Hamano
2007-11-14  9:44 ` Jakub Narebski
2007-11-14  9:54 ` [PATCH] git-clean: honor core.excludesfile Junio C Hamano
2007-11-14 10:02 ` [PATCH] git-clean: consider core.excludesfile Johannes Sixt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.