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

Re: [PATCH 2/2] Add builtin "git rm" command

From
Junio C Hamano <junkio@cox.net>
Date
May 21, 2006, 08:20 UTC
Message-ID
<7vpsi7zt53.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0605191607580.10823@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 10 quoted lines
> I think the new behaviour is strictly an improvement, but perhaps more 
> importantly, it is _different_. As a special case, the semantics are 
> identical for the single-file case (which is the only one our test-suite 
> seems to test).
>
> The other question is what to do with leading directories. The old "git 
> rm" script didn't do anything, which is somewhat inconsistent. This one 
> will actually clean up directories that have become empty as a result of 
> removing the last file, but maybe we want to have a flag to decide the 
> behaviour?
I too think these are improvements.  Thanks for the patch.

BTW, this needed another "evil merge" into "next", so this time I made a separate evil merge branch that I speculated as a possibly better alternative approach in an earlier message.

Previous: Linus Torvalds
Message 3 of 3 in “Move pathspec matching from builtin-add.c into dir.c”
  1. 1/2 Move pathspec matching from builtin-add.c into dir.cLinus Torvalds, May 19, 2006
  2. 2/2 Add builtin "git rm" commandLinus Torvalds, May 19, 2006
  3. Junio C HamanoMay 21, 2006

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.