From: Duy Nguyen Date: Thu, 16 May 2013 08:23:18 GMT Subject: Re: [PATCH] branch: add show-tracking option Message-ID: In-Reply-To: <5194921F.4080103@drmicha.warpmail.net> On Thu, May 16, 2013 at 3:00 PM, Michael J Gruber wrote: > 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