Commit 2337249
worktree: address PR feedback
Move the VFS worktree block from the generic BLOCK_ON_VFS_ENABLED
check in run_builtin() to an explicit check in cmd_worktree(). This
keeps the worktree entry in the commands table clean (RUN_SETUP only)
and makes the VFS guard self-contained in builtin/worktree.c.
Guard the skip-clean-check marker behind core_virtualfilesystem so
it only takes effect when VFS is active.
Consolidate the worktree tests into a single test case that covers
add (with --no-checkout verification), list, and remove. Use
core.gvfs=true instead of the magic number 351.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent dedaa37 commit 2337249
3 files changed
Lines changed: 25 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1420 | 1420 | | |
1421 | 1421 | | |
1422 | 1422 | | |
1423 | | - | |
| 1423 | + | |
1424 | 1424 | | |
1425 | 1425 | | |
1426 | 1426 | | |
| |||
1492 | 1492 | | |
1493 | 1493 | | |
1494 | 1494 | | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
1495 | 1503 | | |
1496 | 1504 | | |
1497 | 1505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
578 | | - | |
| 577 | + | |
579 | 578 | | |
580 | 579 | | |
581 | 580 | | |
| |||
762 | 761 | | |
763 | 762 | | |
764 | 763 | | |
765 | | - | |
| 764 | + | |
766 | 765 | | |
767 | 766 | | |
768 | 767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 39 | + | |
| 40 | + | |
45 | 41 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 42 | + | |
| 43 | + | |
56 | 44 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
64 | 49 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 50 | + | |
69 | 51 | | |
70 | | - | |
71 | | - | |
| 52 | + | |
72 | 53 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
78 | 57 | | |
79 | 58 | | |
80 | 59 | | |
| |||
0 commit comments