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

Re: [PATCH/RFC v4 0/2] Add -e/--exclude to git clean.

From
LSLouis Strous <louis.strous@gmail.com>
Date
Sep 23, 2010, 09:05 UTC
Message-ID
<loom.20100923T103502-148@post.gmane.org>
In-Reply-To
<20100720191131.GA2688@localhost.localdomain>

The git clean -e option is more useful than just for stuff that you plan to bring under git control later. It also allows to retain per-user configurations of external tools when using git clean to remove all build results and intermediate files. This leads to the enhancement request described below.

Most IDEs (integrated development environments) allow the user to configure various display and debugger options, and store those options in some configuration file. Such user option files should not be under git control in a multi-user environment, because then all users are forced to use the same options. Yet these user option files should not be deleted when the rest of the untracked files are deleted (through git clean), otherwise the user options are lost.

git clean -x -d -f -e "pattern" removes all untracked files except those matching the pattern. However, it is cumbersome to specify these patterns every time. It would be more convenient if git clean would read such patterns from a file similar to .gitignore (maybe .gitignoreclean?). Then that file itself could be put under git control and shared with the other developers.

I request implementation of this feature.
Best regards,
Louis Strous
Previous: Jared Hance
Message 16 of 16 in “Add --exclude to git-clean.j”
  1. Add --exclude to git-clean.jJared Hance, Jul 19, 2010
  2. Jonathan NiederJul 19, 2010
  3. Jared HanceJul 19, 2010
  4. Add --exclude to git-clean.Jared Hance, Jul 19, 2010
  5. Junio C HamanoJul 19, 2010
  6. Jared HanceJul 19, 2010
  7. Add --exclude to git-clean.Jared Hance, Jul 19, 2010
  8. 0/2 Add -e/--exclude to git clean.Jared Hance, Jul 20, 2010
  9. 1/2 Add --exclude to git-clean.Jared Hance, Jul 20, 2010
  10. 2/2 Add test for git clean -e.Jared Hance, Jul 20, 2010
  11. Aaron CraneJul 20, 2010
  12. Jared HanceJul 20, 2010
  13. Junio C HamanoJul 20, 2010
  14. Junio C HamanoJul 20, 2010
  15. Jared HanceJul 20, 2010
  16. Louis StrousSep 23, 2010

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.