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

Re: [RFC] git clean --local

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 2, 2018, 00:04 UTC
Message-ID
<xmqqsgzgiyk2.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAM+q9MeVS1e11vzu+-RP-i5NhSsnRz=x21q3gcGy8L62yceiMw@mail.gmail.com>
Cameron Boehmer <cameron.boehmer@gmail.com> writes:
Show 5 quoted lines
> 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.

This does not belong to the "clean" command (who says the need to ignore the global configuration is limited to "clean" and why?), so "git clean --local" is simply not acceptable.

But it might be useful as an option that affects any "git" command, e.g. "git --local-config-only clean". I dunno.

> 2) change the behavior of -x/-X
This won't happen without a long deprecation period.

If you haven't seen and read them, check the recent list archive for the past few weeks, with keywords "trashable", "precious", etc.

Previous: Cameron BoehmerNext: Junio C Hamano
Message 2 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.