# latest blob date (request)

7 messages from 2006-01-16 to 2006-01-16. Participants: Randy.Dunlap, Paul Mackerras, Kay Sievers, Junio C Hamano, Linus Torvalds.
Thread: https://gitlist.dev/t/3080

## Randy.Dunlap, 2006-01-16 01:31

Subject: latest blob date (request)
Message-ID: <20060115173100.1134256b.rdunlap@xenotime.net>
URL: https://gitlist.dev/e/20060115173100.1134256b.rdunlap%40xenotime.net

```
Hi,

I would find it helpful (a user optimization) if each tree list
contained a date-last-modified/updated.  This could be used
to help decide if I (someone) wanted to click on a particular
blob or history (OK, blobs are quick, but history can be
very time-consuming, so being able to shortcut or skip
history would be very helpful IMO).

---
~Randy

```

## Paul Mackerras, 2006-01-16 05:07

Subject: Re: latest blob date (request)
Message-ID: <17355.10749.834774.642712@cargo.ozlabs.ibm.com>
URL: https://gitlist.dev/e/17355.10749.834774.642712%40cargo.ozlabs.ibm.com
In-Reply-To: <20060115173100.1134256b.rdunlap@xenotime.net>

```
Randy,

> I would find it helpful (a user optimization) if each tree list
> contained a date-last-modified/updated.  This could be used
> to help decide if I (someone) wanted to click on a particular
> blob or history (OK, blobs are quick, but history can be
> very time-consuming, so being able to shortcut or skip
> history would be very helpful IMO).

Are you talking about gitk or gitweb?  If you mean gitweb on
kernel.org, Kay Sievers is who you need to talk to.

Paul.

```

## Randy.Dunlap, 2006-01-16 05:10

Subject: gitweb: latest blob date (request)
Message-ID: <20060115211011.17b18f60.rdunlap@xenotime.net>
URL: https://gitlist.dev/e/20060115211011.17b18f60.rdunlap%40xenotime.net
In-Reply-To: <17355.10749.834774.642712@cargo.ozlabs.ibm.com>

```
On Mon, 16 Jan 2006 16:07:09 +1100 Paul Mackerras wrote:

> Randy,
> 
> > I would find it helpful (a user optimization) if each tree list
> > contained a date-last-modified/updated.  This could be used
> > to help decide if I (someone) wanted to click on a particular
> > blob or history (OK, blobs are quick, but history can be
> > very time-consuming, so being able to shortcut or skip
> > history would be very helpful IMO).
> 
> Are you talking about gitk or gitweb?  If you mean gitweb on
> kernel.org, Kay Sievers is who you need to talk to.

Sheesh, you are correct.  Sorry.

Redirecting to Kay.	

---
~Randy

```

## Kay Sievers, 2006-01-16 17:44

Subject: Re: gitweb: latest blob date (request)
Message-ID: <20060116174444.GA13512@vrfy.org>
URL: https://gitlist.dev/e/20060116174444.GA13512%40vrfy.org
In-Reply-To: <20060115211011.17b18f60.rdunlap@xenotime.net>

```
On Sun, Jan 15, 2006 at 09:10:11PM -0800, Randy.Dunlap wrote:
> On Mon, 16 Jan 2006 16:07:09 +1100 Paul Mackerras wrote:
> 
> > Randy,
> > 
> > > I would find it helpful (a user optimization) if each tree list
> > > contained a date-last-modified/updated.  This could be used
> > > to help decide if I (someone) wanted to click on a particular
> > > blob or history (OK, blobs are quick, but history can be
> > > very time-consuming, so being able to shortcut or skip
> > > history would be very helpful IMO).
> > 
> > Are you talking about gitk or gitweb?  If you mean gitweb on
> > kernel.org, Kay Sievers is who you need to talk to.
> 
> Sheesh, you are correct.  Sorry.

Hmm, where do I find this information? It is recorded in last commit,
that changed the file, right? I'm not sure, if we can get this out of
the git tools?

Thanks,
Kay

```

## Randy.Dunlap, 2006-01-16 17:46

Subject: Re: gitweb: latest blob date (request)
Message-ID: <Pine.LNX.4.58.0601160945430.24990@shark.he.net>
URL: https://gitlist.dev/e/Pine.LNX.4.58.0601160945430.24990%40shark.he.net
In-Reply-To: <20060116174444.GA13512@vrfy.org>

```
On Mon, 16 Jan 2006, Kay Sievers wrote:

> On Sun, Jan 15, 2006 at 09:10:11PM -0800, Randy.Dunlap wrote:
> > On Mon, 16 Jan 2006 16:07:09 +1100 Paul Mackerras wrote:
> >
> > > Randy,
> > >
> > > > I would find it helpful (a user optimization) if each tree list
> > > > contained a date-last-modified/updated.  This could be used
> > > > to help decide if I (someone) wanted to click on a particular
> > > > blob or history (OK, blobs are quick, but history can be
> > > > very time-consuming, so being able to shortcut or skip
> > > > history would be very helpful IMO).
> > >
> > > Are you talking about gitk or gitweb?  If you mean gitweb on
> > > kernel.org, Kay Sievers is who you need to talk to.
> >
> > Sheesh, you are correct.  Sorry.
>
> Hmm, where do I find this information? It is recorded in last commit,
> that changed the file, right? I'm not sure, if we can get this out of
> the git tools?

I have no idea.  Maybe not.  If not, that's too bad.

I was just making a request of something that I think would
be very helpful.

-- 
~Randy

```

## Junio C Hamano, 2006-01-16 17:55

Subject: Re: gitweb: latest blob date (request)
Message-ID: <7vbqyct5vj.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vbqyct5vj.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20060116174444.GA13512@vrfy.org>

```
Kay Sievers <kay.sievers@vrfy.org> writes:

> Hmm, where do I find this information? It is recorded in last commit,
> that changed the file, right? I'm not sure, if we can get this out of
> the git tools?

Yes we can.  But it is rather expensive.  You would do an
equivalent of "git whatchanged" for each and every path.

Of course commit chain is immutable so you could do this once
and cache the results.

```

## Linus Torvalds, 2006-01-16 19:00

Subject: Re: latest blob date (request)
Message-ID: <Pine.LNX.4.64.0601161055300.13339@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0601161055300.13339%40g5.osdl.org
In-Reply-To: <20060115173100.1134256b.rdunlap@xenotime.net>

```


On Sun, 15 Jan 2006, Randy.Dunlap wrote:
> 
> I would find it helpful (a user optimization) if each tree list
> contained a date-last-modified/updated.  This could be used
> to help decide if I (someone) wanted to click on a particular
> blob or history (OK, blobs are quick, but history can be
> very time-consuming, so being able to shortcut or skip
> history would be very helpful IMO).

That's fundamentally a very expensive operation in git.

A "blob" doesn't have a date - and indeed, it cannot have one, since the 
same blob may be associated with multiple different pathnames, and 
multiple different commits.

If you have a particular pathname, you can ask "when was this pathname 
changed last", which is basically

	git-rev-list --max-count=1 HEAD -- Makefile 

but that's not very cheap either.

		Linus

```
