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

Re: [PATCH] clean: add --null option

From
Clemens Buchacher <drizzd@aon.at>
Date
Apr 14, 2012, 19:38 UTC
Message-ID
<20120414193833.GA29999@ecki>
In-Reply-To
<1334426158-13607-1-git-send-email-rosslagerwall@gmail.com>
On Sat, Apr 14, 2012 at 07:55:58PM +0200, Ross Lagerwall wrote:
>
> Add a --null (-z) option to git-clean which prints out the files
> and directories separated with a NUL character rather than '\n'.
> This makes it useful in conjunction with xargs -0.
Thanks. Looks sensible to me.
> -					printf(_("Removing %s\n"), qname);
> +					print_path(_("Removing %s\n"), qname,
> +						   use_nul);

Although exceeding the 80 column boundary, I think this would be more readable without line break. If we want to stay within 80 columns, I don't think you can use 5 levels of indentation at the same time.

You could also make use_nul a static global, although it probably does not improve the situation much.

Previous: Ross Lagerwall
Message 2 of 2 in “clean: add --null option”
  1. clean: add --null optionRoss Lagerwall, Apr 14, 2012
  2. Clemens BuchacherApr 14, 2012

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.