nd/worktree-list-fixup
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 1 replyIn review
- v13 patches 8 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | worktree.c: zero new 'struct worktree' on allocationworktree.c | +2 | 0 replies | |
| 2/5 | worktree: reorder an if statementbuiltin/ | +3 | 0 replies | |
| 3/5 | get_worktrees() must return main worktree as first item even on errorbuiltin/ t/ worktree.c | +28 | 0 replies | |
| 4/5 | worktree.c: get_worktrees() takes a new flag argumentbranch.c builtin/ builtin/ +2 more | +8 | 0 replies | |
| 5/5 | worktree list: keep the list sortedbuiltin/ t/ worktree.c +1 more | +36 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/5] nd/worktree-list-fixup
This version
* changes get_worktrees() to take a flag, and adds one flag for sorting.
* adds tests for both the 'main worktree always present' and the sorting problems.
* reworks 3/5 a bit, keep changes closer, easier to see the cause and consequence.
Nguyễn Thái Ngọc Duy (5):
worktree.c: zero new 'struct worktree' on allocation
worktree: reorder an if statement
get_worktrees() must return main worktree as first item even on error worktree.c: get_worktrees() takes a new flag argument worktree list: keep the list sorted
branch.c | 2 +- builtin/branch.c | 2 +- builtin/worktree.c | 14 ++++++++------ t/t2027-worktree-list.sh | 40 ++++++++++++++++++++++++++++++++++++++++ worktree.c | 42 +++++++++++++++++++++--------------------- worktree.h | 4 +++- 6 files changed, 74 insertions(+), 30 deletions(-)
Signature · 1 line
2.8.2.524.g6ff3d78