Re: gitweb: View graphes & get tar
On Wednesday 08 February 2006 23:34, Bertrand Jacquin wrote:
Show 12 quoted lines
> Hi,
>
> Is gitweb maintainer planned to allow people to get from gitweb ? It
> could be something good for ungited/remote people to get a tar for a
> specific tree.
> gd provide to create graphs and is often use in "web project" to
> generate graphe. Could it here generated a graph of branches like in
> gitk ?
> It also could be cool to allow people to get binary files in an other
> mimetype that text/plain.
>
> Here are my wish :D it's worth what it's worth.
You can do some of that a different way.
I have it set up so that when I push a tag into my public git repositories, that a post-update hook creates a tarball of the site and puts it into the download directory.
The hook is of the following form
#!/bin/sh
#
# This script is used to create a tarball of the project and place it into the
"files"
# directory of the web site whenever a release is tagged in the repository
#
PROJECT=akcmoney
# this should look at each positional parameter
for ref ; do
#if its a tag then create a tarball
if [ "${ref:0:10}" == "refs/tags/" ] ; then
git-tar-tree ${ref:10} $PROJECT | gzip -9 > /var/www/chandlerfamily/files/$PROJECT/$PROJECT-${ref:10}.tar.gz--
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.