Skip to content

worktree: cleanups & simplification

Eric Sunshine git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4worktree: drop pointless strbuf_release()worktree.c+0 -20 replies
2/4worktree: drop unused code from get_linked_worktree()worktree.c+0 -30 replies
3/4worktree: drop bogus and unnecessary path mungingworktree.c+1 -60 replies
4/4worktree: retire special-case normalization of main worktree pathworktree.c+2 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] worktree: cleanups & simplification

The primary change of this series is a response to Junio's observation[1] that it would be nice if get_main_worktree() didn't employ special cases for path normalization. I was planning on investigating the topic eventually anyway but ended up having to tackle the same sort of manual special case normalization in another worktree-related topic I'm working on, thus this series fell out naturally from that other work. Along the way, while re-studying the worktree code, I came across a few other issues which deserved attention, but which are not directly related to the other topic I'm working on, so I bundled all these small changes together here.

Eric Sunshine (4):
worktree: drop pointless strbuf_release()
worktree: drop unused code from get_linked_worktree()
worktree: drop bogus and unnecessary path munging
worktree: retire special-case normalization of main worktree path

 worktree.c | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)
Signature · 1 line
2.28.0.203.gce1f2e0ef1