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

Re: [PATCH] prune: allow --dry-run for -n and --verbose for -v

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 6, 2010, 21:04 UTC
Message-ID
<20100806210429.GA6495@burratino>
In-Reply-To
<4C5C7055.3090100@lsrfire.ath.cx>
René Scharfe wrote:
Show 7 quoted lines
> +++ b/builtin/prune.c
> @@ -125,10 +125,9 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
>  {
>  	struct rev_info revs;
>  	const struct option options[] = {
> -		OPT_BOOLEAN('n', NULL, &show_only,
> +		OPT_BOOLEAN('n', "dry-run", &show_only,

For the curious: avoiding OPT__DRY_RUN allows us to give a better description:

>  			    "do not remove, show only"),
which makes sense to me.  Thanks.
Previous: René ScharfeNext: René Scharfe
Message 2 of 4 in “prune: allow --dry-run for -n and --verbose for -v”
  1. prune: allow --dry-run for -n and --verbose for -vRené Scharfe, Aug 6, 2010
  2. Jonathan NiederAug 6, 2010
  3. René ScharfeAug 6, 2010
  4. René ScharfeAug 7, 2010

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.