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

Re: [PATCH] Extend index to save more flags

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Sep 2, 2008, 07:33 UTC
Message-ID
<fcaeb9bf0809020033i6ed8c268gac3cedcbebe57e26@mail.gmail.com>
In-Reply-To
<7vhc8zm2ka.fsf@gitster.siamese.dyndns.org>
On 9/2/08, Junio C Hamano <gitster@pobox.com> wrote:
Show 15 quoted lines
> Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
>
>  > The on-disk format of index only saves 16 bit flags, nearly all have
>  > been used. The last bit (CE_EXTENDED) is used to for future extension.
>  >
>  > This patch extends index entry format to save more flags in future.
>  > The new entry format will be used when CE_EXTENDED bit is 1.
>  >
>  > Because older implementation may not understand CE_EXTENDED bit and
>  > misread the new format, if there is any extended entry in index, index
>  > header version will turn 3, which makes it incompatible for older git.
>  > If there is none, header version will return to 2 again.
>
>
> I think this is a good change.

Just don't apply it now. There is a bug in die() code for unknown flags. I'll resend with narrow checkout series, which will also be a test case for these change.

-- 
Duy
Previous: Junio C Hamano
Message 5 of 5 in “Extend index to save more flags”
  1. Extend index to save more flagsNguyễn Thái Ngọc Duy, Sep 1, 2008
  2. Johannes SixtSep 1, 2008
  3. Extend index to save more flagsNguyễn Thái Ngọc Duy, Sep 1, 2008
  4. Junio C HamanoSep 2, 2008
  5. Nguyen Thai Ngoc DuySep 2, 2008

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.