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

Re: Branch list by date

From
Jeff King <peff@peff.net>
Date
Jul 9, 2014, 05:21 UTC
Message-ID
<20140709052114.GC2318@sigill.intra.peff.net>
In-Reply-To
<CAMxk9GhQs_kF5573MS1SJ6a7UZuPu+oquXidOOvibznLQ7_FWw@mail.gmail.com>
On Mon, Jul 07, 2014 at 09:54:55PM -0700, Jeremy Apthorp wrote:
> I write this missive with dual purpose: firstly to share a potentially
> useful tool, and secondly to suggest that this feature (with a less
> mind-wrenchingly disgusting implementation) might be included in
> mainline git, as for example `git branch [-t] | [--by-time]`.
I think what we should aim for is:
  1. Teaching git-branch the same sorting as for-each-ref. So first
     --sort, and then possibly "-t" as an alias for "--sort=committerdate".
  2. Teaching git-branch custom output formats. We have "-v" and "-vv",
     but it should support the full power of for-each-ref's --format
     atoms.
  3. Teach branch and for-each-ref to support readable colors in their
     formats, like we do for "log --format".
  4. Optionally add config options to configure defaults for the above,
     so "git branch" shows what you want.

I'm (slowly) working on a refactor that will unify for-each-ref and branch, which would accomplish (1) and (2).

-Peff
Previous: Jeremy Apthorp
Message 2 of 2 in “Branch list by date”
  1. Jeremy ApthorpJul 8, 2014
  2. Jeff KingJul 9, 2014

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.