Re: [PATCH] gitweb: tree view: hash_base and hash are now context sensitive
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Oct 1, 2006, 22:27 UTC
- Message-ID
- <efpfc3$765$1@sea.gmane.org>
- In-Reply-To
- <20060929233037.42926.qmail@web31808.mail.mud.yahoo.com>
Luben Tuikov wrote:
> What this patch does is simply set "h" and/or "hb" to > the string "HEAD" instead of the string "<SHA1 of HEAD>" when > h/hb is not defined.
I guess there it is a good idea, but we should always think over if we want "constant" link, always showing the same thing, or a "variable" (or "news") link, showing current version.
Explicit sha1 hash as 'h'/'hb' gives persistent, cacheable link, while e.g. "HEAD" gives "variable" link.
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git