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

Re: [PATCH v2] sub-process: print the cmd when a capability is unsupported

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 16, 2017, 21:55 UTC
Message-ID
<xmqqshgri3dv.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<xmqq4lt7pir9.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 15 quoted lines
> Ben Peart <peartben@gmail.com> writes:
>
>>> -			warning("external filter requested unsupported filter capability '%s'",
>>> -				p);
>>> +			warning("subprocess '%s' requested unsupported capability '%s'",
>>> +				process->argv[0], p);
>>>   		}
>>>   	}
>>>   
>>>
>>
>> This one is even cleaner.  Thanks Lars for pointing out the fact we
>> already had the cmd name.  Looks good.
>
> Thanks, all.  Will queue.

I still think we would want to turn warning() to die(), but it probably is better to do so in a separate follow-up patch. That will give us a good place to record the reason why the current "just call a warning() and pretend as if nothing bad happend" is wrong.

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 8 in “sub-process: print the cmd when a capability is unsupported”
  1. sub-process: print the cmd when a capability is unsupportedChristian Couder, Aug 16, 2017
  2. Ben PeartAug 16, 2017
  3. Junio C HamanoAug 16, 2017
  4. Junio C HamanoAug 16, 2017
  5. Junio C HamanoSep 11, 2017
  6. Ben PeartSep 11, 2017
  7. Lars SchneiderSep 12, 2017
  8. Lars SchneiderAug 16, 2017

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.