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

RE: [RFC] git clean --local

From
Randall S. Becker <rsbecker@nexbridge.com>
Date
Dec 2, 2018, 17:37 UTC
Message-ID
<004101d48a65$afb0da40$0f128ec0$@nexbridge.com>
In-Reply-To
<87woosukkm.fsf@evledraar.gmail.com>
On December 2, 2018 8:26, Ævar Arnfjörð Bjarmason wrote:
Show 12 quoted lines
> 
> On Sat, Dec 01 2018, Cameron Boehmer wrote:
> 
> > 1) add a new flag
> > -l, --local
> >     Do not consult git config --global core.excludesFile in
> > determining what files git ignores. This is useful in conjunction with
> > -x/-X to preserve user files while removing build artifacts.
> 
> Or perhaps a general flag to ignore configuration would be useful for such
> cases, see https://public-
> inbox.org/git/87zhtqvm66.fsf@evledraar.gmail.com/
Would something like git clean --exclude=file-pattern work as a compromise notion? Files matching the pattern would not be cleaned regardless of .gitignore or their potential preciousness status long-term. Multiple repetitions of the --exclude option might be supportable. I could see that being somewhat useful in scripting.

Cheers, Randall

Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 5 of 8 in “[RFC] git clean --local”
  1. Cameron BoehmerDec 1, 2018
  2. Junio C HamanoDec 2, 2018
  3. Junio C HamanoDec 2, 2018
  4. Ævar Arnfjörð BjarmasonDec 2, 2018
  5. Randall S. BeckerDec 2, 2018
  6. Junio C HamanoDec 2, 2018
  7. Cameron BoehmerDec 3, 2018
  8. Junio C HamanoDec 4, 2018

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.