git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-clean: consider core.excludesfile

From
SFshunichi fuji <palglowr@gmail.com>
Date
Nov 14, 2007, 07:40 UTC
Message-ID
<30046e3b0711132340y2c503dd4laea24b9b1c79a160@mail.gmail.com>

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
Next: Junio C Hamano
Message 1 of 5 in “git-clean: consider core.excludesfile”
  1. git-clean: consider core.excludesfileshunichi fuji, Nov 14, 2007
  2. Junio C HamanoNov 14, 2007
  3. Jakub NarebskiNov 14, 2007
  4. git-clean: honor core.excludesfileJunio C Hamano, Nov 14, 2007
  5. Johannes SixtNov 14, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.