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
René Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
Aug 6, 2010, 21:41 UTC
Message-ID
<4C5C8193.1040608@lsrfire.ath.cx>
In-Reply-To
<20100806210429.GA6495@burratino>
Am 06.08.2010 23:04, schrieb Jonathan Nieder:
Show 16 quoted lines
> René Scharfe wrote:
>
>> +++ 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.
Indeed.

Adding a helptext parameter to OPT__DRY_RUN à la OPT__COLOR would make it usable here as well as in commit.c and fetch.c. Similar changes could help OPT__VERBOSE and OPT__QUIET. Their standard helptexts don't add a lot of information..

René
Previous: Jonathan NiederNext: René Scharfe
Message 3 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.