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

Re: [PATCH] branch: support sorting branches by mtime

From
JJJoshua Juran <jjuran@gmail.com>
Date
Nov 20, 2010, 04:22 UTC
Message-ID
<21836339-5F7E-4485-97CB-FC609CE4E364@gmail.com>
In-Reply-To
<1290090126-14471-1-git-send-email-pclouds@gmail.com>
On Nov 18, 2010, at 6:22 AM, Nguyễn Thái Ngọc Duy wrote:
Show 22 quoted lines
> I lost in my branches again while looking for a topic that I feel like
> working on tonight. Too old branches are out of question.
>
> This throwaway patch demonstrates the idea. I should have looked into
> reflog for this kind of information, but my laziness won over me.
>
> OK Git's fun time is over..
> ---
> builtin/branch.c |   32 ++++++++++++++++++++++++++++----
> 1 files changed, 28 insertions(+), 4 deletions(-)
>
> diff --git a/builtin/branch.c b/builtin/branch.c
> index 87976f0..fdc2714 100644
> --- a/builtin/branch.c
> +++ b/builtin/branch.c
> @@ -232,6 +232,7 @@ struct ref_item {
> 	char *name;
> 	char *dest;
> 	unsigned int kind, len;
> +	unsigned long mtime;
> 	struct commit *commit;
> };
It's possible to have 32-bit long and 64-bit time_t.
Josh
Previous: Jeff King
Message 3 of 3 in “branch: support sorting branches by mtime”
  1. branch: support sorting branches by mtimeNguyễn Thái Ngọc Duy, Nov 18, 2010
  2. Jeff KingNov 18, 2010
  3. Joshua JuranNov 20, 2010

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.