From: Jeff King Date: Thu, 09 Apr 2009 08:23:50 GMT Subject: Re: [PATCH 5/5] branch: show upstream branch when double verbose Message-ID: <20090409082350.GD17221@coredump.intra.peff.net> In-Reply-To: <49DB089A.7080207@drmicha.warpmail.net> On Tue, Apr 07, 2009 at 10:02:34AM +0200, Michael J Gruber wrote: > > will be interpreted as "origin/master is ahead 5, behind 6" when it is > > really the reverse. Maybe "[ahead 5, behind 6 from origin/master]" would > > be better? > > Maybe [origin/master +5 -6]? That should be short enough for sticking it > into -v. We could even use [origin/master +0 -0] for an up-to-date > branch then. I am not opposed to that format, but I don't feel strongly. And not many people are voicing an opinion in this thread (strange, given that it is an opportunity for bikeshedding :) ). My patches are in next, so I think I am done on the topic for now. But feel free to submit a followup patch. > In any case, I think often one is interested in one branch only. I would > expect "git branch -v foo" to give me the -v info just for branch foo. > Currently it does not. But that would be an independent patch on top. Hmm. I think that is a little counterintuitive because we think of "-v" as simply "increase verbosity" (because that is what it means in just about every program). But here you are fundamentally changing the action that is occurring (from "create branch" to "show branch"). I think it would make more sense to have a "show branch" mode like: git branch -s foo which would probably have the more detailed output by default. -Peff