git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bertrand Jacquin <beber.mailing@gmail.com>
To: Alan Chandler <alan@chandlerfamily.org.uk>
Cc: git@vger.kernel.org
Subject: Re: gitweb: View graphes & get tar
Date: Thu, 9 Feb 2006 12:12:42 +0100	[thread overview]
Message-ID: <4fb292fa0602090312k1607e42fu88e03b788d339390@mail.gmail.com> (raw)
In-Reply-To: <200602090003.35354.alan@chandlerfamily.org.uk>

On 2/9/06, Alan Chandler <alan@chandlerfamily.org.uk> wrote:
> On Wednesday 08 February 2006 23:34, Bertrand Jacquin wrote:
> > 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
>         fi
> done

That's ok, but with that I couldn't get a tar for _not_ the current
tree. If i want to get a tar tree for 2 months old in not master
branch, I can't with that. The idea here is the create the tar on the
fly, on the user demand.
And also, I use http push so hooks can't be used :/

>
> --
> Alan Chandler
> http://www.chandlerfamily.org.uk
> Open Source. It's the difference between trust and antitrust.
> -
> 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
>


--
Beber
#e.fr@freenode

  reply	other threads:[~2006-02-09 11:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-08 23:34 gitweb: View graphes & get tar Bertrand Jacquin
2006-02-09  0:03 ` Alan Chandler
2006-02-09 11:12   ` Bertrand Jacquin [this message]
2006-02-09 12:11     ` Andreas Ericsson
2006-02-09 11:18 ` Sven Verdoolaege

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4fb292fa0602090312k1607e42fu88e03b788d339390@mail.gmail.com \
    --to=beber.mailing@gmail.com \
    --cc=alan@chandlerfamily.org.uk \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).