Re: [PATCH v2 10/19] documentation: add documentation of the index-v5 file format
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Aug 4, 2013, 11:26 UTC
- Message-ID
- <CACsJy8D9Q5=TF7MD1PUid-HEsCb7+JKo6=Rv6zXtjRYO3fPVYQ@mail.gmail.com>
- In-Reply-To
- <1373650024-3001-11-git-send-email-t.gummerer@gmail.com>
On Sat, Jul 13, 2013 at 12:26 AM, Thomas Gummerer <t.gummerer@gmail.com> wrote:
Show 10 quoted lines
> +== Header
> + sig (32-bits): Signature:
> + The signature is { 'D', 'I', 'R', 'C' } (stands for "dircache")
> +
> + vnr (32-bits): Version number:
> + The current supported versions are 2, 3, 4 and 5.
> +
> + ndir (32-bits): number of directories in the index.
> +
> + nfile (32-bits): number of file entries in the index.I just noticed that "file" command can show the number of entries, something like this
.git/index: Git index, version 4, 2625 entries
Maybe we can swap ndir and nfile to immitate pre-v5 format, so unmodified "file" still shows correct number of entries/files with v5?
-- Duy