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

Re: Git tag output order is incorrect (IMHO)

From
Jeff King <peff@peff.net>
Date
Sep 8, 2013, 08:03 UTC
Message-ID
<20130908080311.GA25498@sigill.intra.peff.net>
In-Reply-To
<CALWbr2w7XCuD5tUSwR+Cwv4wyXLk8MHDGyU2Dr+jA9vOfDYqig@mail.gmail.com>
On Tue, Aug 20, 2013 at 05:12:47PM +0200, Antoine Pelisse wrote:
Show 8 quoted lines
> On Sat, Jul 20, 2013 at 2:22 AM, Jeff King <peff@peff.net> wrote:
> > I do plan to finish it eventually, but if anyone else feels like picking
> > it up, I'd be glad to review patches and/or share my work-in-progress as
> > a starting point.
> 
> I have some free time to come, and would like to work on that feature.
> Does the offer still hold ?
> If it does, I would be interested in your patches.

I'm sorry I have taken so long to get back to you on this. I was hoping to revisit the topic and make sure the patches were in a sensible state for showing to somebody. But it took me some time to get around to it, and now that I have, they're really not looking very good.

My general strategy was to factor out all of the "which refs to select" code from git-tag (which knows --contains and --points-at) and git-branch (which knows --merged, --no-merged, and --contains), and then make them all available in a library-ish way to both commands, as well as for-each-ref (which also knows name matching, which all 3 should know, too). You can see my messy in-progress commit (that does not even compile) at:

  git://github.com/peff/git.git jk/contains-wip

Part of the complication is that the filters have to happen at different times (you can efficiently ask "--contains" for each ref as you see it, but asking "--merged" must happen after you have collected each one).

I do not recall at this point what other issues led me to stop working on it (it may simply have been time for dinner, and I never came back to it). So the patches there may or may not actually be helpful to you.

Sorry I can't be more helpful. I'd be happy to discuss or review if you want to work on it.

-Peff
Previous: Antoine PelisseNext: Jeff King
Message 11 of 16 in “Git tag output order is incorrect (IMHO)”
  1. Rahul BansalJul 18, 2013
  2. Duy NguyenJul 18, 2013
  3. Duy NguyenJul 18, 2013
  4. Rahul BansalJul 18, 2013
  5. Rahul BansalJul 18, 2013
  6. Duy NguyenJul 18, 2013
  7. Andreas SchwabJul 18, 2013
  8. Junio C HamanoJul 19, 2013
  9. Jeff KingJul 20, 2013
  10. Antoine PelisseAug 20, 2013
  11. Jeff KingSep 8, 2013
  12. Jeff KingOct 16, 2013
  13. Antoine PelisseOct 16, 2013
  14. Felipe ContrerasSep 8, 2013
  15. Phil HordSep 11, 2013
  16. Junio C HamanoSep 11, 2013

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.