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

Re: [EXTERNAL] Re: BUG: git clean -d cannot remove files from read-only directories

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 20, 2020, 22:26 UTC
Message-ID
<xmqqo8ts99pp.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<BL0PR2101MB1089E3CE7738BB70B65C17B680130@BL0PR2101MB1089.namprd21.prod.outlook.com>
Adam Milazzo <Adam.Milazzo@microsoft.com> writes:
Show 6 quoted lines
>> Also, another way to look at this; currently 'git clean -fd'
>> behaves the same on untracked directories as 'rm -rf' does and I
>> think that's a good model for how to behave.  Why should they be
>> different?
>
> I would ask "why should they be the same?"

Simply because that is how users would expect how the world works (iow, model things after what they are already familiar with).

Previous: Adam MilazzoNext: Adam Milazzo
Message 4 of 8 in “Re: BUG: git clean -d cannot remove files from read-only directories”
  1. Adam MilazzoFeb 20, 2020
  2. Elijah NewrenFeb 20, 2020
  3. Adam MilazzoFeb 20, 2020
  4. Junio C HamanoFeb 20, 2020
  5. Adam MilazzoFeb 20, 2020
  6. Elijah NewrenFeb 21, 2020
  7. Elijah NewrenFeb 20, 2020
  8. Junio C HamanoFeb 21, 2020

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.