From: Junio C Hamano Date: Fri, 01 Feb 2019 22:34:45 GMT Subject: Re: [PATCH v7 2/3] branch: Mark and color a branch differently if it is checked out in a linked worktree Message-ID: In-Reply-To: <20190201220420.36216-3-nbelakovski@gmail.com> nbelakovski@gmail.com writes: > If `--list` is given, or if there are no non-option arguments, existing > -branches are listed; the current branch will be highlighted with an > -asterisk. Option `-r` causes the remote-tracking branches to be listed, > -and option `-a` shows both local and remote branches. If a `` > -is given, it is used as a shell wildcard to restrict the output to > -matching branches. If multiple patterns are given, a branch is shown if > -it matches any of the patterns. Note that when providing a > -``, you must use `--list`; otherwise the command is interpreted > +branches are listed; the current branch will be highlighted in green and > +marked with an asterisk. Any branches checked out in linked worktrees will > +be highlighted in cyan and marked with a plus sign. Option `-r` causes the > +remote-tracking branches to be listed, and option `-a` shows both local and > +remote branches. If a `` is given, it is used as a shell wildcard to > +restrict the output to matching branches. If multiple patterns are given, a > +branch is shown if it matches any of the patterns. Note that when providing > +a ``, you must use `--list`; otherwise the command is interpreted > as branch creation. I had to apply and then use --color-words to see what is going on. Please avoid unnecessary reflowing of the text that makes the patch harder than necessary to read. I still do not quite see the point of this step in the series, though.