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

Re: [PATCH 0/6] git worktree move/remove

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 9, 2017, 17:34 UTC
Message-ID
<xmqqd1fwuogg.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170108094003.637-1-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
> This version is the same as nd/worktree-move but with the recursive
> directory copy code removed. We rely on rename() to move directories.
Much simpler ;-)
Will replace; thanks.
Show 15 quoted lines
> Nguyễn Thái Ngọc Duy (6):
>   worktree.c: add validate_worktree()
>   worktree.c: add update_worktree_location()
>   worktree move: new command
>   worktree move: accept destination as directory
>   worktree move: refuse to move worktrees with submodules
>   worktree remove: new command
>
>  Documentation/git-worktree.txt         |  28 ++++--
>  builtin/worktree.c                     | 162 +++++++++++++++++++++++++++++++++
>  contrib/completion/git-completion.bash |   5 +-
>  t/t2028-worktree-move.sh               |  56 ++++++++++++
>  worktree.c                             |  84 +++++++++++++++++
>  worktree.h                             |  11 +++
>  6 files changed, 335 insertions(+), 11 deletions(-)
Previous: Nguyễn Thái Ngọc Duy
Message 8 of 8 in “git worktree move/remove”
  1. 0/6 git worktree move/removeNguyễn Thái Ngọc Duy, Jan 8, 2017
  2. 1/6 worktree.c: add validate_worktree()Nguyễn Thái Ngọc Duy, Jan 8, 2017
  3. 2/6 worktree.c: add update_worktree_location()Nguyễn Thái Ngọc Duy, Jan 8, 2017
  4. 3/6 worktree move: new commandNguyễn Thái Ngọc Duy, Jan 8, 2017
  5. 4/6 worktree move: accept destination as directoryNguyễn Thái Ngọc Duy, Jan 8, 2017
  6. 5/6 worktree move: refuse to move worktrees with submodulesNguyễn Thái Ngọc Duy, Jan 8, 2017
  7. 6/6 worktree remove: new commandNguyễn Thái Ngọc Duy, Jan 8, 2017
  8. Junio C HamanoJan 9, 2017

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.