git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/4] worktree: cleanups & simplification

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jul 31, 2020, 23:32 UTC
Message-ID
<20200731233214.22131-1-sunshine@sunshineco.com>

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(-)
-- 
2.28.0.203.gce1f2e0ef1
Next: Eric Sunshine
Message 1 of 5 in “worktree: cleanups & simplification”
  1. 0/4 worktree: cleanups & simplificationEric Sunshine, Jul 31, 2020
  2. 3/4 worktree: drop bogus and unnecessary path mungingEric Sunshine, Jul 31, 2020
  3. 2/4 worktree: drop unused code from get_linked_worktree()Eric Sunshine, Jul 31, 2020
  4. 4/4 worktree: retire special-case normalization of main worktree pathEric Sunshine, Jul 31, 2020
  5. 1/4 worktree: drop pointless strbuf_release()Eric Sunshine, Jul 31, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.