git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb: View graphes & get tar

From
BJBertrand Jacquin <beber.mailing@gmail.com>
Date
Feb 9, 2006, 11:12 UTC
Message-ID
<4fb292fa0602090312k1607e42fu88e03b788d339390@mail.gmail.com>
In-Reply-To
<200602090003.35354.alan@chandlerfamily.org.uk>
On 2/9/06, Alan Chandler <alan@chandlerfamily.org.uk> wrote:
Show 37 quoted lines
> 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 :/

Show 10 quoted lines
>
> --
> 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

Previous: Alan ChandlerNext: Andreas Ericsson
Message 3 of 5 in “gitweb: View graphes & get tar”
  1. Bertrand JacquinFeb 8, 2006
  2. Alan ChandlerFeb 9, 2006
  3. Bertrand JacquinFeb 9, 2006
  4. Andreas EricssonFeb 9, 2006
  5. Sven VerdoolaegeFeb 9, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.