Re: [RFC/PATCH 3/3] gitweb: Fill project details lazily when caching
- From
Frank Lichtenheld <frank@lichtenheld.de>
- Date
- Mar 18, 2008, 09:52 UTC
- Message-ID
- <20080318095252.GH18624@mail-vs.djpig.de>
- In-Reply-To
- <200803181012.11273.jnareb@gmail.com>
On Tue, Mar 18, 2008 at 10:12:09AM +0100, Jakub Narebski wrote:
Show 8 quoted lines
> On Tue, 18 March 2008, Petr Baudis wrote: > > The idea is nice, but I'm surely missing something obvious again - why > > do you use lstat() as opposed to stat()? > > Because in my home installation of gitweb (for tests) I have > /home/local/scm/git.git symlinked to /home/jnareb/git/.git > And I want to follow changes in repository; link itself doesn't > change.
Which means you have that backwards, since
"lstat() is identical to stat(), except that if path is a symbolic link, then the link itself is stat-ed, not the file that it refers to." (from linux manpage)
Gruesse,
-- Frank Lichtenheld <frank@lichtenheld.de> www: http://www.djpig.de/