From: Junio C Hamano Date: Tue, 11 Aug 2015 15:46:56 GMT Subject: Re: [PATCH v3] worktree: add 'list' command Message-ID: In-Reply-To: <1439261725.5283.9.camel@twopensource.com> David Turner writes: > On Mon, 2015-08-10 at 16:53 -0400, Michael Rappazzo wrote: >> + while ((d = readdir(dir)) != NULL) { > > I think it would be useful to break this loop out into a > for_each_worktree function. Very good point.