git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/PATCH 0/2] RFC/POC: patterns for branch list
@ 2011-04-27 12:15 Michael J Gruber
  2011-04-27 12:15 ` [RFC/PATCH 1/2] branch: allow pattern arguments Michael J Gruber
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael J Gruber @ 2011-04-27 12:15 UTC (permalink / raw)
  To: git

This mini series is about introducing patterns to the list mode of
'git branch' much like the pattern for 'git tag -l'. There are several
things which I would like to do but would like to rfc first:

'-l' is the natural short option name for '--list'. This is taken for the
rarely used or needed 'create reflog' option. I'd change the latter to
'-g,--create-reflog' (cmp. log) and take '-l,--list' but know the reaction
already.

'-v' and '-vv' both take considerable time (because they need to walk).
It makes more sense to have '-v' display cheap output (upstream name)
and '-vv' add expensive output (ahead/behind info). '-vvv' could add super
expensive info (ahead/equivalent/behind a la cherry-mark).

But all of the above are changes to current (ui) behaviour. In the two patches
below, only the automatic activation of the list mode with -v/-vv is a
change of (undocumented) behaviour.

And yes, git-for-each-ref can do all this and more, but that is plumbing.

Michael J Gruber (2):
  branch: allow pattern arguments
  branch: introduce --list argument

 builtin/branch.c |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

-- 
1.7.5.270.gafca7

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-27 17:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-27 12:15 [RFC/PATCH 0/2] RFC/POC: patterns for branch list Michael J Gruber
2011-04-27 12:15 ` [RFC/PATCH 1/2] branch: allow pattern arguments Michael J Gruber
2011-04-27 12:15 ` [RFC/PATCH 2/2] branch: introduce --list argument Michael J Gruber
2011-04-27 17:10 ` [RFC/PATCH 0/2] RFC/POC: patterns for branch list Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).