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

Re: [PATCH] setup: recognise extensions.objectFormat

From
Patryk Obara <patryk.obara@gmail.com>
Date
Jan 26, 2018, 17:44 UTC
Message-ID
<8c6b33fc-38e8-f617-0466-c282b3e2d61d@gmail.com>
In-Reply-To
<nycvar.QRO.7.76.6.1801261002570.35@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz>
On 26/01/2018 15:41, Johannes Schindelin wrote:
Show 13 quoted lines
> On Thu, 25 Jan 2018, Duy Nguyen wrote:
>>
>> This config is so sensitive I wonder if we should forbid changing it
>> via git-config. You can't simply change this and expect anything to
>> work anyway.
> 
> I don't think it makes sense to forbid `git config` from changing these
> values, as it is all-too-easy to change them via `git config -e` *anyway*.
> And we already have the repositoryFormat precedent with the exact same
> issue.
> 
> In my opinion, it would only complicate the code, for very little (if at
> all noticable) benefit.

That's my sentiment as well, but some measure of user protection might be necessary.

I was thinking about doing a sanity check: when objectFormat is set, re-hash N (randomly selected?) objects, where N is sufficient to get 3-sigma confidence.

This might be necessary to prevent object store corruption e.g. when objectFormat is set in repo, that is cloned with reference from repo without extension.

-- 
| ← Ceci n'est pas une pipe
Patryk Obara
Previous: Johannes SchindelinNext: Stefan Beller
Message 5 of 6 in “setup: recognise extensions.objectFormat”
  1. setup: recognise extensions.objectFormatPatryk Obara, Jan 24, 2018
  2. Patryk ObaraJan 24, 2018
  3. Duy NguyenJan 25, 2018
  4. Johannes SchindelinJan 26, 2018
  5. Patryk ObaraJan 26, 2018
  6. Stefan BellerJan 26, 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.