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

Re: [PATCH] perl: also mark git-contacts executable

From
Ben Knoble <ben.knoble@gmail.com>
Date
Nov 6, 2025, 14:07 UTC
Message-ID
<87BB8F6A-7176-4C51-9F36-BA613E7D8B08@gmail.com>
In-Reply-To
<aQxMmnzPR6swvG-d@pks.im>
Show 6 quoted lines
> Le 6 nov. 2025 à 02:22, Patrick Steinhardt <ps@pks.im> a écrit :
> 
> On Tue, Nov 04, 2025 at 01:14:57PM -0500, D. Ben Knoble wrote:
>> When install git-contacts with Meson via -Dcontrib=contacts, the default
> 
> s/install/installing/
Thanks. If Junio doesn’t mind the trivial fix, I’ll avoid sending v2 for now :)
Show 27 quoted lines
> 
>> Perl generation fails to mark it executable. As a result, "git contacts"
>> reports "'contacts' is not a git command."
>> 
>> Unlike generate-script.sh, we aren't testing the basename here; so, glob
>> the script name in the case arm to match wherever the input comes from.
> 
> Yeah, that feels sensibel to me.
> 
>> diff --git a/generate-perl.sh b/generate-perl.sh
>> index 65f122ebfc..796d835932 100755
>> --- a/generate-perl.sh
>> +++ b/generate-perl.sh
>> @@ -30,7 +30,7 @@
>>     "$INPUT" >"$OUTPUT"
>> 
>> case "$INPUT" in
>> -*.perl)
>> +*.perl|*git-contacts)
>>    chmod a+x "$OUTPUT";;
>> *)
>>    ;;
> 
> And the change looks as expected. An alternative could of course be to
> rename the file in-tree to "git-contacts.perl". In that case we wouldn't
> require this special case at all. But I guess that this here is good
> enough, and there might be other consequences if we renamed the script.
My worry too. 
> Thanks!
> 
> Patrick
Thanks for the review!
Previous: Patrick SteinhardtNext: Junio C Hamano
Message 3 of 8 in “perl: also mark git-contacts executable”
  1. perl: also mark git-contacts executableD. Ben Knoble, Nov 4, 2025
  2. Patrick SteinhardtNov 6, 2025
  3. Ben KnobleNov 6, 2025
  4. Junio C HamanoNov 6, 2025
  5. perl: also mark git-contacts executableD. Ben Knoble, Nov 11, 2025
  6. Junio C HamanoNov 11, 2025
  7. D. Ben KnobleNov 11, 2025
  8. Junio C HamanoNov 11, 2025

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.