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

Re: [PATCH 3/2] update-index: list supported idx versions and their features

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Feb 23, 2013, 20:53 UTC
Message-ID
<20130223205356.GC3222@elie.Belkin>
In-Reply-To
<1361584468-11820-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy wrote:
Show 16 quoted lines
> --- a/Documentation/git-update-index.txt
> +++ b/Documentation/git-update-index.txt
> @@ -145,7 +145,15 @@ you will need to handle the situation manually.
>  
>  --index-version <n>::
>  	Write the resulting index out in the named on-disk format version.
> -	The current default version is 2.
> +	Supported versions are 2, 3 and 4. The current default version is 2
> +	or 3, depending on whether extra features are used, such as
> +	`git add -N`.
> ++
> +	Version 4 performs a simple pathname compression that could
> +	reduce index size by 30%-50% on large repositories, which
> +	results in faster load time. Version 4 is relatively young
> +	(first released in 1.8.0 in October 2012). Other Git
> +	implementations may not support it yet.

Markup nit: the second paragraph needs to be unindented, or asciidoc will treat it as literal text, including line breaks.

Usage nit: s/could/can/

Clarity nit: something like "such as JGit and libgit2" after "Other Git implementations" would make it clearer, at least to my eyes.

Aside from that, this looks like a good change.

Thanks, Jonathan

Previous: Nguyễn Thái Ngọc DuyNext: Junio C Hamano
Message 5 of 10 in “index-format.txt: mention of v4 is missing in some places”
  1. 1/2 index-format.txt: mention of v4 is missing in some placesNguyễn Thái Ngọc Duy, Feb 22, 2013
  2. 2/2 read-cache.c: use INDEX_FORMAT_{LB,UB} in verify_hdr()Nguyễn Thái Ngọc Duy, Feb 22, 2013
  3. Junio C HamanoFeb 22, 2013
  4. 3/2 update-index: list supported idx versions and their featuresNguyễn Thái Ngọc Duy, Feb 23, 2013
  5. Jonathan NiederFeb 23, 2013
  6. Junio C HamanoFeb 23, 2013
  7. Jonathan NiederFeb 23, 2013
  8. 3/2 update-index: list supported idx versions and their featuresNguyễn Thái Ngọc Duy, Feb 23, 2013
  9. Jonathan NiederFeb 23, 2013
  10. Junio C HamanoFeb 22, 2013

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.