This patch series adds a for_each_worktree function and then uses it to implement the `git worktree list` command. Differences from [v3](http://www.mail-archive.com/git@xxxxxxxxxxxxxxx/msg75599.html) - create the for_each_worktree function - uses the function in the list - a bare repo is NOT included in the iterated worktrees Michael Rappazzo (2): worktree: add 'for_each_worktree' function worktree: add 'list' command Documentation/git-worktree.txt | 11 +++- builtin/worktree.c | 139 +++++++++++++++++++++++++++++++++++++++++ t/t2027-worktree-list.sh | 51 +++++++++++++++ 3 files changed, 200 insertions(+), 1 deletion(-) create mode 100755 t/t2027-worktree-list.sh -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html