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

Re: RFE: version-controlled merge rules

From
Hhpa@zytor.com <hpa@zytor.com>
Date
Dec 29, 2018, 09:14 UTC
Message-ID
<0F05FF7B-14C7-46C5-A85C-4C571860E8CA@zytor.com>
In-Reply-To
<xmqqo995pvmc.fsf@gitster-ct.c.googlers.com>
On December 28, 2018 6:35:23 AM PST, Junio C Hamano <gitster@pobox.com> wrote:
Show 36 quoted lines
>Jonathan Nieder <jrnieder@gmail.com> writes:
>
>> The main issue I see is that this would make it a little *too* easy
>to
>> run arbitrary code on the user's machine.  Build systems often
>already
>> lead to that, but users are more familiar with the risks for build
>> than for version control.
>>
>> See [1] for some related discussion.
>>
>> That said, using the include.path feature (see git-config(1)), it's
>> possible to do something similar:
>>
>> 	[include]
>> 		path = ../.gitconfig
>>
>> Thanks and hope that helps,
>
>The issue the arrangement to specify what kind of files they are in
>the attribute system and to specify what exact commands to be run in
>the configuration addresses is twofold.  The security issue is one
>and poking a hole with include.path mechanism is probably OK as
>there is end-user consent, but I tend to agree that a similar risk
>already exists by a project shipping Makefile et al.
>
>There is the other side of the issue.
>
>The arrangement allows project not to be monoculture by leaving the
>exact command sequence to use on the kind of files (specified by the
>project with the attribute system) up to the end-user in their
>configuration.  While Peter may feel that sort piped to head may be
>available on all the reasonable UNIX systems, his merge driver would
>not work on other platforms.  There already is a similar reliance of
>monoculture by a project shipping Makefile et al, which is an
>interesting parallel.
This is actually a further good reason for doing it this way: it means that more genal drivers can be written using files in the repo, depending on what the baseline of the project is.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Previous: Junio C HamanoNext: Ævar Arnfjörð Bjarmason
Message 6 of 7 in “RFE: version-controlled merge rules”
  1. H. Peter AnvinDec 27, 2018
  2. Jonathan NiederDec 27, 2018
  3. H. Peter AnvinDec 28, 2018
  4. Duy NguyenDec 28, 2018
  5. Junio C HamanoDec 28, 2018
  6. hpa@zytor.comDec 29, 2018
  7. Ævar Arnfjörð BjarmasonDec 28, 2018

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.