[PATCH v9 5/5] worktree: add 'list' command

2015-10-02 Thread Michael Rappazzo
'git worktree list' iterates through the worktree list, and outputs details of the worktree including the path to the worktree, the currently checked out revision and branch, and if the work tree is bare. There is also porcelain format option available. Signed-off-by: Michael Rappazzo

Re: [PATCH v9 5/5] worktree: add 'list' command

2015-10-02 Thread Junio C Hamano
Michael Rappazzo writes: > + if (!porcelain) { > + for (i = 0; worktrees[i]; i++) { > + int path_len = strlen(worktrees[i]->path); > + if (path_len > path_maxlen) > +