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

Re: [PATCH 1/2] index-format.txt: mention of v4 is missing in some places

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 22, 2013, 20:46 UTC
Message-ID
<7vr4k8cc0b.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1361534964-4232-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
Show 28 quoted lines
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---
>  Documentation/technical/index-format.txt | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/technical/index-format.txt b/Documentation/technical/index-format.txt
> index 27c716b..0810251 100644
> --- a/Documentation/technical/index-format.txt
> +++ b/Documentation/technical/index-format.txt
> @@ -12,7 +12,7 @@ Git index format
>         The signature is { 'D', 'I', 'R', 'C' } (stands for "dircache")
>  
>       4-byte version number:
> -       The current supported versions are 2 and 3.
> +       The current supported versions are 2, 3 and 4.
>  
>       32-bit number of index entries.
>  
> @@ -93,8 +93,8 @@ Git index format
>      12-bit name length if the length is less than 0xFFF; otherwise 0xFFF
>      is stored in this field.
>  
> -  (Version 3) A 16-bit field, only applicable if the "extended flag"
> -  above is 1, split into (high to low bits).
> +  (Version 3 or later) A 16-bit field, only applicable if the
> +  "extended flag" above is 1, split into (high to low bits).
>  
>      1-bit reserved for future

Depending on how the first later version decides to encode the additional flag information, "or later" may need to be changed to "and 4" when it happens. As we cannot predict the future, I think "or later" is just as good as "add 4" for now.

Thanks.
Previous: Jonathan Nieder
Message 10 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.