Skip to content

Introduce index file format version 5

Thomas Gummerer git 4 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest13 patches 0 repliesNew
  2. v313 patches 20 repliesSuperseded
  3. v216 patches 38 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC16 patches21 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13Move index v2 specific functions to their own fileMakefile cache.h read-cache-v2.c +3 more+682 -5900 replies
2/13read-cache.c: Re-read index if index file changedread-cache.c+60 -270 replies
3/13t2104: Don't fail for index versions other than [23]t/t2104-update-index-skip-worktree.sh+1 -00 replies
4/13Add documentation of the index-v5 file formatDocumentation/technical/index-file-format-v5.txt+296 -00 replies
5/13Make in-memory format aware of stat_crccache.h read-cache.c+26 -00 replies
6/13Read index-v5Makefile cache.h read-cache-v5.c+630 -00 replies
7/13Read resolve-undo dataread-cache-v5.c+38 -00 replies
8/13Read cache-tree in index-v5cache-tree.c cache-tree.h read-cache-v5.c+105 -10 replies
9/13Write index-v5cache.h read-cache-v5.c read-cache.c +1 more+611 -100 replies
10/13Write index-v5 cache-tree dataread-cache-v5.c+51 -00 replies
11/13Write resolve-undo data for index-v5read-cache-v5.c+96 -00 replies
12/13update-index.c: rewrite index when index-version is givenbuiltin/update-index.c+3 -10 replies
13/13p0002-index.sh: add perf test for the index formatst/perf/p0002-index.sh+33 -00 replies

Reviews trailers per patch

None of the 13 patches has a Reviewed-by or Acked-by.

PatchNguyen Thai Ngoc DuyThomas RastMichael HaggertyJunio C HamanoRobin Rosenberg
1/13Helped-by
2/13
3/13
4/13Helped-by Helped-by Helped-by Helped-by Helped-by
5/13
6/13Helped-by Helped-by Helped-by
7/13Helped-by
8/13
9/13Helped-by Helped-by
10/13
11/13Helped-by
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v4 thread

Cover letter [PATCH/RFC v4 0/13] Introduce index file format version 5

Previous rounds of the series are at $gmane/202752 and $gmane/202923 and $gmane/203088.

The modification to t3700 was removed as the smudge marker is replaced with a CE_SMUDGED flag and therefore the code doesn't interfere with the test.

Changes since the last round:

[PATCH/RFC v4 01/13] Move index v2 specific functions to their own [PATCH/RFC v4 02/13] read-cache.c: Re-read index if index file
Re-read the index file if the index file has changed since the first time we read it. Checking if the index file changed is done by using it's stat data.

[PATCH/RFC v4 03/13] t2104: Don't fail for index versions other than [PATCH/RFC v4 04/13] Add documentation of the index-v5 file format
Documentation updates as suggested by Junio.

[PATCH/RFC v4 05/13] Make in-memory format aware of stat_crc [PATCH/RFC v4 06/13] Read index-v5
Replace the pointer casts with ptr_add makro as suggested by Junio.

Use a CE_SMUDGED flag instaed of ce_mtime as smudge marker.

Ignore the crc sum if we don't trust_cetime, since it may give us wrong results.

[PATCH/RFC v4 07/13] Read resolve-undo data
No longer do the conversion in resolve-undo.c but in read-cache-v5.c. (The same is valid for 11/13)

[PATCH/RFC v4 08/13] Read cache-tree in index-v5
No longer do the conversion in cache-tree.c but in read-cache-v5.c. (The same is valid for 10/13)

[PATCH/RFC v4 09/13] Write index-v5
[PATCH/RFC v4 10/13] Write index-v5 cache-tree data [PATCH/RFC v4 11/13] Write resolve-undo data for index-v5 [PATCH/RFC v4 12/13] update-index.c: rewrite index when
Don't introduce the force-rewrite option, but always rewrite the index if a index-version is given.

[PATCH/RFC v4 13/13] p0002-index.sh: add perf test for the index