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

Re: [PATCH/RFC] Teach git-clean optional <paths>... parameters.

From
PRPavel Roskin <proski@gnu.org>
Date
May 8, 2006, 22:42 UTC
Message-ID
<1147128134.3353.13.camel@dv>
In-Reply-To
<7v1wv4gx0r.fsf@assigned-by-dhcp.cox.net>
On Mon, 2006-05-08 at 12:02 -0700, Junio C Hamano wrote:
Show 8 quoted lines
> When optional paths arguments are given, git-clean passes them
> to underlying git-ls-files; with this, you can say:
> 
> 	git clean 'temp-*'
> 
> to clean only the garbage files whose names begin with 'temp-'.
> 
> Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Pavel Roskin <proski@gnu.org>
>  * I usually do not use clean myself, so I am not sure if this
>    is the kind of thing people who do use 'clean' regularly
>    would generally want, hence this RFC.
I'm not likely to use this feature, but I think it's OK to have it.
It would be nice to have "--" support (see e.g. git-commit).
> +	-X	remove only ignored files as well
That's my stupid error, "as well" should be removed.
-- 
Regards,
Pavel Roskin
Previous: Junio C Hamano
Message 2 of 2 in “Teach git-clean optional <paths>... parameters.”
  1. Teach git-clean optional <paths>... parameters.Junio C Hamano, May 8, 2006
  2. Pavel RoskinMay 8, 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.