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

Re: Listing of branch creation time?

From
Nicolas Pitre <nico@cam.org>
Date
Mar 28, 2007, 01:25 UTC
Message-ID
<alpine.LFD.0.83.0703272114300.3041@xanadu.home>
In-Reply-To
<20070328000149.GA12808@coredump.intra.peff.net>
On Tue, 27 Mar 2007, Jeff King wrote:
Show 10 quoted lines
> On Tue, Mar 27, 2007 at 06:00:04PM -0600, Bill Lear wrote:
> 
> > Ok, thank you.  I will try this out and keep this in mind as I test
> > out the patch Johannes posted.
> 
> This is, btw, completely different than what Johannes posted. His patch
> shows you the date of the _tip_ of each of the branches. My script shows
> the _oldest_ reflog for the branch. So it depends on whether you want
> them in order of "last worked on" or "created" (you said "created", but
> I wonder if "last worked on" is actually more useful).

I think "last worked on" is the only thing that makes sense. Anything else is completely ambigous, especially in the presence of forks and merges. And eventually all reflogs will have about the same age when they extend past the expiration period, at which point the "oldest reflog" is not meaningful anymore.

However Johannes' patch uses the author date for sorting. I think branches really should be sorted by committer's date though. The committer's date is a much better indicator of when a given branch has been updated while the author's date might be any time in the past.

Nicolas
Previous: Nicolas PitreNext: Linus Torvalds
Message 14 of 17 in “Listing of branch creation time?”
  1. Bill LearMar 27, 2007
  2. git-branch: add --sort-by-date optionJohannes Schindelin, Mar 27, 2007
  3. Bill LearMar 27, 2007
  4. Teach revision machinery about --no-walkJohannes Schindelin, Jul 23, 2007
  5. Jeff KingMar 27, 2007
  6. Bill LearMar 28, 2007
  7. Jeff KingMar 28, 2007
  8. Bill LearMar 28, 2007
  9. Jeff KingMar 28, 2007
  10. Bill LearMar 28, 2007
  11. David LangMar 27, 2007
  12. Jeff KingMar 28, 2007
  13. Nicolas PitreMar 28, 2007
  14. Nicolas PitreMar 28, 2007
  15. Linus TorvaldsMar 28, 2007
  16. Junio C HamanoMar 28, 2007
  17. Jeff KingMar 28, 2007

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.