Jakub Narebski wrote: > Toby White wrote: > >> I was wondering if a feature like the following would be of >> use to anyone except me: I'd like to be able to download >> the full source of a given tree from gitweb. > [...] > So you want to have snapshot of a tree. Why not snapshot of a commit, > or of a tag? > >> I've quickly hacked gitweb to do this for me - patch below. >> >> It adds an extra link to the 'commit' page. Next to the link >> that would lead you to 'tree', there is 'tar.gz' which simply >> returns the tar.gz of the same tree. >> >> The patch is against the version of gitweb currently in >> Debian, which is, erm, '264-1', apparently, because that's >> what I had to hand. > > It is really better to hack git with git. And you can use current gitweb > with old git (well, not always, as current gitweb requires --full-history > option to git-rev-list to be available). > How about the below on top of latest git -aneesh