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

Re: [PATCH 3/3] name-rev: --weight option (WIP)

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 30, 2012, 04:09 UTC
Message-ID
<7vd329uiko.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20120830035127.GB32268@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> When you wrote "oldest" here, I thought that meant you would do a
> comparison on the taggerdate. But reading the implementation, you really
> mean "topologically oldest".
>
> I wonder, though, if the former would be sufficient for most people.

Even without clock skew, timestamps are inappropriate measure for the purpose of measuring "this dates back to...", unless you are limiting yourself to very linear history. Even in our own history, v1.7.6.6 is 4 months newer than v1.7.7, for example. The same holds true between v1.7.6.6^0 and v1.7.7^0, so the story does not change whether you use tagger date or committer date.

Basing this based on tag names is an attractive idea, but we would need to devise a way for people to pass project specific tagname comparison function from outside. v3.2 is newer than v3.2-rc1 but v3.2-bis may probably be newer than v3.2 and I do not think we want to collect the rules and cast the logic in our code in stone.

Previous: Jeff KingNext: Philip Oakley
Message 17 of 19 in “Funny 'git describe --contains' output”
  1. Greg KHAug 29, 2012
  2. Junio C HamanoAug 29, 2012
  3. Junio C HamanoAug 29, 2012
  4. Greg KHAug 29, 2012
  5. 0/3 "git name-rev --weight"Junio C Hamano, Aug 29, 2012
  6. 1/3 name-rev: lose unnecessary typedefJunio C Hamano, Aug 29, 2012
  7. 2/3 name_rev: clarify when a new tip-name is assigned to a commitJunio C Hamano, Aug 29, 2012
  8. 3/3 name-rev: --weight option (WIP)Junio C Hamano, Aug 29, 2012
  9. Junio C HamanoAug 29, 2012
  10. Jeff KingAug 30, 2012
  11. Junio C HamanoAug 30, 2012
  12. Jeff KingAug 30, 2012
  13. Junio C HamanoAug 30, 2012
  14. Junio C HamanoAug 30, 2012
  15. Junio C HamanoAug 30, 2012
  16. Jeff KingAug 30, 2012
  17. Junio C HamanoAug 30, 2012
  18. Philip OakleyAug 30, 2012
  19. Junio C HamanoAug 30, 2012

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.