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

Re: manual option --inline --no-attach override required for format.attachg

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Feb 16, 2023, 01:29 UTC
Message-ID
<Y+2HCa5kqfVZ0Coq@tapette.crustytoothpaste.net>
In-Reply-To
<20230215215112.62559-1-Brian.Inglis@Shaw.ca>
On 2023-02-15 at 21:51:13, Brian Inglis wrote:
> Anything else you want to add:
> initially found format.attach set in /etc/gitconfig and no way to override
> would be great if linux-man maintainer could set repo config format.inline format.attach=no

I think Junio has responded to the rest of this and is more familiar with it than I am, but we don't allow repository configuration to be shipped in the repo. That's because in general configuration can contain programs or shell commands and thus execute arbitrary code, so doing so would be a security problem.

Experiences with Vim modelines have shown that embedding configuration, even when highly restricted, can be the cause of lots of security vulnerabilities, and we've seen this with config used by submodules in the past. For that and many other reasons, including the fact that users may not care what upstream's preferred settings are, it's extremely unlikely that we'll add any automatic way to ship configuration in the repository.

-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Brian Inglis
Message 4 of 4 in “manual option --inline --no-attach override required for format.attach”
  1. Brian InglisFeb 15, 2023
  2. Junio C HamanoFeb 15, 2023
  3. Brian InglisFeb 17, 2023
  4. brian m. carlsonFeb 16, 2023

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.