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

Re: * [BUG] "git clean" does not pay attention to its parameters

From
Shawn Bohrer <shawn.bohrer@gmail.com>
Date
Dec 5, 2007, 15:28 UTC
Message-ID
<20071205152816.GA21347@mediacenter.austin.rr.com>
In-Reply-To
<7veje1zibm.fsf@gitster.siamese.dyndns.org>
On Tue, Dec 04, 2007 at 11:55:41PM -0800, Junio C Hamano wrote:
> Does this patch help?  I am not sure why the directory side of the code
> is written that way, but I have a suspicion that "was a directory
> explicitly given as one of the pathspec" check is also bogus, although I
> did not touch that part.

Before the rewrite in C git clean would refuse to remove a directory if you said:

   git clean dir

without using the -d parameter. Per your suggestion this check causes git clean to remove the directory anyway since you explicitly asked it to.

Previous: Sam RavnborgNext: Junio C Hamano
Message 6 of 9 in “[BUG] "git clean" does not pay attention to its parameters”
  1. Nanako ShiraishiDec 5, 2007
  2. Junio C HamanoDec 5, 2007
  3. Johannes SchindelinDec 5, 2007
  4. Junio C HamanoDec 5, 2007
  5. Sam RavnborgDec 5, 2007
  6. Shawn BohrerDec 5, 2007
  7. Junio C HamanoDec 6, 2007
  8. Jeff KingDec 5, 2007
  9. Jeff KingDec 6, 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.