From: Eric Sunshine Date: Mon, 31 Aug 2015 06:23:18 GMT Subject: Re: [PATCH v6 2/2] worktree: add 'list' command Message-ID: In-Reply-To: <1440961839-40575-3-git-send-email-rappazzo@gmail.com> On Sun, Aug 30, 2015 at 3:10 PM, Michael Rappazzo wrote: > 'git worktree list' uses the for_each_worktree function to iterate, > and outputs the worktree dir. With the verbose option set, it also > shows the branch or revision currently checked out in that worktree. > > Signed-off-by: Michael Rappazzo > --- > diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt > index fb68156..867a24a 100644 > --- a/Documentation/git-worktree.txt > +++ b/Documentation/git-worktree.txt > @@ -11,6 +11,7 @@ SYNOPSIS > [verse] > 'git worktree add' [-f] [--detach] [-b ] [] > 'git worktree prune' [-n] [-v] [--expire ] > +'git worktree list' [-v|--verbose] For conciseness and consistency with the "git worktree prune" synopsis, this should mention only -v (and omit --verbose). > DESCRIPTION > ----------- > @@ -88,11 +93,13 @@ OPTIONS > > -v:: > --verbose:: > - With `prune`, report all removals. > + With `prune`, report all removals. > + With `list` show the branch or revision currently checked out in that worktree. Add a comma after "With `list`". Also: s/in that/in each/ This new line is overly long; wrapping it over a couple lines would help. > --expire