git@vger.kernel.org mailing list mirror (one of many)
 help / Atom feed
* [PATCH 0/7] nd/worktree-move reboot
@ 2018-01-24  9:53 Nguyễn Thái Ngọc Duy
  2018-01-24 20:42 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Nguyễn Thái Ngọc Duy @ 2018-01-24  9:53 UTC (permalink / raw)
  To: git
  Cc: Junio C Hamano, Eric Sunshine, kaartic.sivaraam,
	Nguyễn Thái Ngọc Duy

This series adds two more commands "git worktree move" and "git
worktree remove" to do those things. I think I have addressed all
comments from the mail threads referenced in "What's cooking" mails. I
also added the ability to remove a worktree if its worktree area is
already deleted.

It's a big code change (I reorganized remove_worktree() a bit for
example to keep the last/new patch clean) so I'm not going to send
interdiff.

There's only one thing left that I should do, mentioned in 6/7, to
print detached HEAD before we remove a worktree. But I think if that's
a good idea, it could be done separately on top.

Big thanks to Junio for keeping this on 'pu' all this time. Must be
hard on you to resolve conflicts over and over.

Nguyễn Thái Ngọc Duy (7):
  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
  worktree remove: allow it when $GIT_WORK_TREE is already gone

 Documentation/git-worktree.txt         |  28 +++--
 builtin/worktree.c                     | 216 +++++++++++++++++++++++++++++++++
 contrib/completion/git-completion.bash |   5 +-
 t/t2028-worktree-move.sh               |  65 ++++++++++
 worktree.c                             |  97 +++++++++++++++
 worktree.h                             |  18 +++
 6 files changed, 418 insertions(+), 11 deletions(-)

-- 
2.16.0.47.g3d9b0fac3a


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 0/7] nd/worktree-move reboot
  2018-01-24  9:53 [PATCH 0/7] nd/worktree-move reboot Nguyễn Thái Ngọc Duy
@ 2018-01-24 20:42 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2018-01-24 20:42 UTC (permalink / raw)
  To: Nguyễn Thái Ngọc Duy
  Cc: git, Eric Sunshine, kaartic.sivaraam

Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:

> This series adds two more commands "git worktree move" and "git
> worktree remove" to do those things. I think I have addressed all
> comments from the mail threads referenced in "What's cooking" mails. I
> also added the ability to remove a worktree if its worktree area is
> already deleted.

Thanks for moving this forward.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-24  9:53 [PATCH 0/7] nd/worktree-move reboot Nguyễn Thái Ngọc Duy
2018-01-24 20:42 ` Junio C Hamano

git@vger.kernel.org mailing list mirror (one of many)

Archives are clonable:
	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.org/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox