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

Re: [PATCH v2 1/1] setup: recognise extensions.objectFormat

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jan 28, 2018, 15:40 UTC
Message-ID
<20180128154022.GG431130@genre.crustytoothpaste.net>
In-Reply-To
<e430ad029facdd6209927d352f0e7545cdd0e435.1517098675.git.patryk.obara@gmail.com>
On Sun, Jan 28, 2018 at 01:36:17AM +0100, Patryk Obara wrote:
> This extension selects which hashing algorithm from vtable should be
> used for reading and writing objects in the object store.  At the moment
> supports only single value (sha-1).
I think you want an "it" here: "At the moment *it* supports".
Show 16 quoted lines
> In case value of objectFormat is an unknown hashing algorithm, Git
> command will fail with following message:
> 
>   fatal: unknown repository extensions found:
> 	  objectformat = <value>
> 
> To indicate, that this specific objectFormat value is not recognised.
> 
> The objectFormat extension is not allowed in repository marked as
> version 0 to prevent any possibility of accidentally writing a NewHash
> object in the sha-1 object store. This extension behaviour is different
> than preciousObjects extension (which is allowed in repo version 0).
> 
> Add tests and documentation note about new extension.
> 
> Signed-off-by: Patryk Obara <patryk.obara@gmail.com>

Other than that, the patch looks good to me. I like that we reject invalid values immediately. Adding documentation is good, too.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204
Previous: Patryk ObaraNext: Jeff King
Message 3 of 9 in “setup: recognise extensions.objectFormat”
  1. 0/1 setup: recognise extensions.objectFormatPatryk Obara, Jan 28, 2018
  2. 1/1 setup: recognise extensions.objectFormatPatryk Obara, Jan 28, 2018
  3. brian m. carlsonJan 28, 2018
  4. Jeff KingJan 30, 2018
  5. Patryk ObaraJan 30, 2018
  6. Jeff KingJan 30, 2018
  7. Junio C HamanoJan 30, 2018
  8. 0/1 setup: recognise extensions.objectFormatPatryk Obara, Jan 29, 2018
  9. 1/1 setup: recognise extensions.objectFormatPatryk Obara, Jan 29, 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.