Revisiting cache-tree
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | read-tree A B: do not corrupt cache-treebuiltin-read-tree.c | +2 | 0 replies | |
| 2/4 | Move prime_cache_tree() to cache-tree.cbuiltin-checkout.c builtin-read-tree.c cache-tree.c +1 more | +40 | 0 replies | |
| 3/4 | read-tree -m A B: prime cache-tree from the switched-to treebuiltin-read-tree.c | +5 | 0 replies | |
| 4/4 | checkout branch: prime cache-tree fullybuiltin-checkout.c | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] Revisiting cache-tree
This series consists of a fix meant for maint branch, and two performance fix. The second one is a refactoring of the code to support the latter.
I was doing a rather huge import as a multi-step process by doing something like this:
$ rm -f $GIT_DIR/index $ git add some ;# this one is huge $ git tag one $(git write-tree) $ git repack -a -d $ rm -f $GIT_DIR/index $ git add other ;# this one is also huge $ git tag two $(git write-tree) $ git repack -a -d
$ git read-tree some other $ git tag both $(git write-tree) $ git repack -a -d
The binding of two distinct subtrees is done with the read-tree but it wrote out an incorrect index (notice the lack of -m; with -m option the command correctly does a different thing) and resulted in a corrupt tree object.
Junio C Hamano (4):
read-tree A B: do not corrupt cache-tree
Move prime_cache_tree() to cache-tree.c
read-tree -m A B: prime cache-tree from the switched-to tree checkout branch: prime cache-tree fully
builtin-checkout.c | 10 +++++++++- builtin-read-tree.c | 48 ++++++++---------------------------------------- cache-tree.c | 34 ++++++++++++++++++++++++++++++++++ cache-tree.h | 4 ++++ 4 files changed, 55 insertions(+), 41 deletions(-)