Skip to content

nd/multiple-work-trees follow-ups

Nguyễn Thái Ngọc Duy git 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 2 repliesIn review
  2. v15 patches 19 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8gitrepository-layout.txt: s/ignored/ignored if/Documentation/gitrepository-layout.txt+3 -30 replies
2/8checkout: no need to call check_linked_checkouts if head_ref is NULLbuiltin/checkout.c+2 -10 replies
3/8prune --repos: fix uninitialized accessbuiltin/prune.c t/t2026-prune-linked-checkouts.sh+7 -110 replies
4/8checkout: no auto-detach if the ref is already checked outDocumentation/config.txt advice.c advice.h +2 more+55 -440 replies
5/8checkout --to: fix dangling pointers in remove_junk()builtin/checkout.c t/t2025-checkout-to.sh+16 -50 replies
6/8environment.c: fix incorrect git_graft_file initializationenvironment.c t/t0060-path-utils.sh t/t2025-checkout-to.sh+20 -10 replies
7/8checkout: prefix --to argument properly when cwd is movedbuiltin/checkout.c+1 -12 replies
8/8checkout --to: do not touch existing target directorybuiltin/checkout.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] nd/multiple-work-trees follow-ups

This fixes all comments from v1. I still keep the long advice when 'git checkout' fails because another branch is locked, because it's easy(*) to disable the advice. Two more fixes found today. The test breakages on Windows have to wait until somebody on Windows jumps in.

(*) although I start to want an advice.nothing config that disables all advice..

Nguyễn Thái Ngọc Duy (8):
gitrepository-layout.txt: s/ignored/ignored if/
checkout: no need to call check_linked_checkouts if head_ref is NULL prune --repos: fix uninitialized access
checkout: no auto-detach if the ref is already checked out checkout --to: fix dangling pointers in remove_junk() environment.c: fix incorrect git_graft_file initialization
checkout: prefix --to argument properly when cwd is moved checkout --to: do not touch existing target directory

 Documentation/config.txt               |  4 ++
 Documentation/gitrepository-layout.txt |  6 +--
 advice.c                               |  2 +
 advice.h                               |  1 +
 builtin/checkout.c                     | 98 +++++++++++++++++++---------------
 builtin/prune.c                        | 16 +++---
 environment.c                          |  2 +-
 t/t0060-path-utils.sh                  |  1 +
 t/t2025-checkout-to.sh                 | 40 ++++++++++----
 t/t2026-prune-linked-checkouts.sh      |  2 +-
 10 files changed, 106 insertions(+), 66 deletions(-)
Signature · 1 line
2.1.0.rc0.78.gc0d8480