Re: [PATCH 5/7] worktree.c: add clear_worktree()

2016-05-22 Thread Duy Nguyen
On Wed, May 11, 2016 at 1:36 PM, Eric Sunshine wrote: > On Tue, May 10, 2016 at 10:15 AM, Nguyễn Thái Ngọc Duy > wrote: >> The use case is keep some worktree and discard the rest of the worktree >> list. > > So, you're saying that rather than a client freeing the entire > worktree list like this:

Re: [PATCH 5/7] worktree.c: add clear_worktree()

2016-05-10 Thread Eric Sunshine
On Wed, May 11, 2016 at 2:36 AM, Eric Sunshine wrote: > On Tue, May 10, 2016 at 10:15 AM, Nguyễn Thái Ngọc Duy > wrote: >> The use case is keep some worktree and discard the rest of the worktree >> list. > > So, you're saying that rather than a client freeing the entire > worktree list like this:

Re: [PATCH 5/7] worktree.c: add clear_worktree()

2016-05-10 Thread Eric Sunshine
On Tue, May 10, 2016 at 10:15 AM, Nguyễn Thái Ngọc Duy wrote: > The use case is keep some worktree and discard the rest of the worktree > list. So, you're saying that rather than a client freeing the entire worktree list like this: free_worktrees(worktrees); it might instead want to keep so