[PATCH] gitweb.cgi: Teach tree->raw to not require the hash of the blob

From: Luben Tuikov <ltuikov@yahoo.com>
Date: 2006-07-12 13:43:45
Teach tree->raw to not require the hash of the blob, but to
figure it out from the file name.  This allows to externally
link to files into the repository, such that the hash is not
required.  I.e. the file obtained would be as of the HEAD
commit.

In contrast tree->blob for binary files passes the hash, as
does tree->blob->plain for "text/*" files.

Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
---
 gitweb/gitweb.cgi |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Wed Jul 12 13:44:19 2006

This archive was generated by hypermail 2.1.8 : 2006-07-12 13:45:19 EST