git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFC/PATCH 0/2] RFC/POC: patterns for branch list

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Apr 27, 2011, 12:15 UTC
Message-ID
<cover.1303906496.git.git@drmicha.warpmail.net>

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
Next: Michael J Gruber
Message 1 of 4 in “RFC/POC: patterns for branch list”
  1. 0/2 RFC/POC: patterns for branch listMichael J Gruber, Apr 27, 2011
  2. 1/2 branch: allow pattern argumentsMichael J Gruber, Apr 27, 2011
  3. 2/2 branch: introduce --list argumentMichael J Gruber, Apr 27, 2011
  4. Junio C HamanoApr 27, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.