mbox series

[0/4] worktree: cleanups & simplification

Message ID 20200731233214.22131-1-sunshine@sunshineco.com (mailing list archive)
Headers show
Series worktree: cleanups & simplification | expand

Message

Eric Sunshine July 31, 2020, 11:32 p.m. UTC
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(-)