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

Re: [PATCH/RFD 4/3] t7300: Tests for git-clean using filenames with spaces/punctuation

From
MSMichael Spang <mspang@uwaterloo.ca>
Date
May 6, 2007, 19:14 UTC
Message-ID
<463E28FC.9080209@uwaterloo.ca>
In-Reply-To
<7vr6ptbx5g.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 7 quoted lines
> Michael Spang <mspang@uwaterloo.ca> writes:
> 
>> Is this even properly solvable without making clean a builtin or
>> writing git-unescape?
> 
> If you know how to use "xargs -0" and are willing to depend on
> the -0 GNU extension, then the answer is yes.

Right. But I do not think xargs can call a shell function. git-clean does not just call git-rm directly. I guess git-clean could call itself through xargs, but that might become confusing.

Show 6 quoted lines
> I do not use git-clean myself, as I do not see what (I think) it
> tries to solve as a problem to begin with, so obviously I do not
> care too deeply about the command's implementation --- I just
> let it be there because there seem to be others who want it ---
> but if I were asked an advice on the right direction to proceed,
> I would probably suggest rewriting it in C.
That seems like the cleanest solution to me as well.

Cheers, Michael Spang

Previous: Junio C Hamano
Message 8 of 8 in “dir.c: Omit non-excluded directories with dir->show_ignored”
  1. 2/3 dir.c: Omit non-excluded directories with dir->show_ignoredMichael Spang, May 6, 2007
  2. Linus TorvaldsMay 6, 2007
  3. Michael SpangMay 6, 2007
  4. Michael SpangMay 7, 2007
  5. 3/3 Fix minor documentation errorsMichael Spang, May 6, 2007
  6. 4/3 t7300: Tests for git-clean using filenames with spaces/punctuationMichael Spang, May 6, 2007
  7. Junio C HamanoMay 6, 2007
  8. Michael SpangMay 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.