Thread (10 messages) flat view 10 messages, 3 authors, 2016-06-15

Re: [PATCH] branch: add show-tracking option

From: Duy Nguyen <hidden>
Date: 2016-06-15 22:57:16

On Thu, May 16, 2013 at 3:00 PM, Michael J Gruber
[off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help