Re: [PATCH] branch: add show-tracking option
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- May 16, 2013, 08:23 UTC
- Message-ID
- <CACsJy8CrGTa2XdfFkkKDQQjF8gM3011RiUE6roe9L7yZZq5J2g@mail.gmail.com>
- In-Reply-To
- <5194921F.4080103@drmicha.warpmail.net>
On Thu, May 16, 2013 at 3:00 PM, Michael J Gruber <git@drmicha.warpmail.net> wrote:
Show 13 quoted lines
> I feel, though, that we're really exploding our option and config realm. > For "git branch" in list mode, we are already able to stack "-v", i.e. > "-v" and "-vv" do different things. How about maybe adding "-vvv" and > arranging things so that the verbosity and the run time increases with > the number of v's? > > -v list with sha1 + subject of last commit > -vv add upstream branch name > -vvv add ahead/behind info (the only costly mode) > -vvvv same with "--cherry" (ahead/behind/same) > > Or maybe combine the middle two cases into "-vv", which means it would > be the same as "-vv", with only "-v" changing what it does now.
What if I want something in -vvvv except some in -vv? I think to avoid option explosion, maybe we can adopt --pretty=format:xxx from "git log" and let the user decideswhat (and how) to display. "pretty" code learns about alignment already, which may be useful here. -- Duy