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

Re: [PATCH] submodule status: propagate SIGPIPE

From
Pphillip.wood123@gmail.com <phillip.wood123@gmail.com>
Date
Sep 21, 2024, 13:23 UTC
Message-ID
<ae114c58-2a9b-415a-9f47-312e4d080492@gmail.com>
In-Reply-To
<xmqqfrpuf5u7.fsf@gitster.g>
Hi Junio
On 20/09/2024 21:06, Junio C Hamano wrote:
Show 17 quoted lines
> "Phillip Wood via GitGitGadget" <gitgitgadget@gmail.com> writes:
> 
>> diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
>> index a46ffd49b34..a8e497ef3c6 100644
>> --- a/builtin/submodule--helper.c
>> +++ b/builtin/submodule--helper.c
>> @@ -30,6 +30,7 @@
>>   #include "advice.h"
>>   #include "branch.h"
>>   #include "list-objects-filter-options.h"
>> +#include <signal.h>
> 
> Do we really need this?
> 
> As with any other Git built-in that relies on git-compat-util.h to
> handle such system-dependencies, direct inclusion of system headers
> like this is highly questionable.

Good point - I really need to figure out how to stop emacs' lsp mode automatically adding includes. I removed its "helpful" addition of <csignal> but forgot to remove <signal.h> as well.

Thanks
Phillip
Previous: Junio C HamanoNext: Phillip Wood via GitGitGadget
Message 4 of 6 in “submodule status: propagate SIGPIPE”
  1. submodule status: propagate SIGPIPEPhillip Wood via GitGitGadget, Sep 20, 2024
  2. Junio C HamanoSep 20, 2024
  3. Junio C HamanoSep 20, 2024
  4. phillip.wood123@gmail.comSep 21, 2024
  5. submodule status: propagate SIGPIPEPhillip Wood via GitGitGadget, Sep 21, 2024
  6. Junio C HamanoSep 23, 2024

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.