protect branches checked out in all worktrees
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest8 patches 11 repliesIn review
- v68 patches 12 repliesSuperseded
- v54 patches 10 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 4 patches | 10 replies | Superseded | |
| v3 | 2 patches | 9 replies | Superseded | |
| v2 | 1 patch | 5 replies | Superseded | |
| v1 | 1 patch | 0 replies | Superseded |
Patches in v7 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | fetch: lowercase error messagesbuiltin/ | +26 | 0 replies | |
| 2/8 | receive-pack: lowercase error messagesbuiltin/ t/ | +6 | 0 replies | |
| 3/8 | branch: lowercase error messagesbranch.c t/ t/ | +13 | 0 replies | |
| 4/8 | worktree: simplify find_shared_symref() memory ownership modelbranch.c builtin/ builtin/ +3 more | +65 | 6 replies | |
| 5/8 | fetch: protect branches checked out in all worktreesbuiltin/ t/ | +58 | 2 replies | |
| 6/8 | receive-pack: clean dead code from update_worktree()builtin/ | +7 | 0 replies | |
| 7/8 | receive-pack: protect current branch for bare repository worktreebuiltin/ t/ | +17 | 0 replies | |
| 8/8 | branch: protect branches checked out in all worktreesbranch.c t/ | +16 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.
Cover letter [PATCH v7 0/8] protect branches checked out in all worktrees
‘git fetch’ (without ‘--update-head-ok’), ‘git receive-pack’, and ‘git branch -M’ protect the currently checked out branch from being accidentally updated. However, the code for these checks predates ‘git worktree’. Improve it to protect branches checked out in all worktrees, not just the current one.
Anders Kaseorg (8):
fetch: lowercase error messages
receive-pack: lowercase error messages
branch: lowercase error messages
worktree: simplify find_shared_symref() memory ownership model
fetch: protect branches checked out in all worktrees
receive-pack: clean dead code from update_worktree()
receive-pack: protect current branch for bare repository worktree
branch: protect branches checked out in all worktrees
branch.c | 45 +++++++----- builtin/branch.c | 7 +- builtin/fetch.c | 119 +++++++++++++++++--------------- builtin/notes.c | 6 +- builtin/receive-pack.c | 92 +++++++++++++----------- t/t2018-checkout-branch.sh | 2 +- t/t3200-branch.sh | 11 ++- t/t5504-fetch-receive-strict.sh | 2 +- t/t5516-fetch-push.sh | 32 +++++++++ worktree.c | 8 +-- worktree.h | 5 +- 11 files changed, 198 insertions(+), 131 deletions(-)
Signature · 1 line
2.34.1