{"thread":{"id":"3269","subject":"gitweb: View graphes & get tar","startedAt":"2006-02-08T23:34:43Z","lastAt":"2006-02-09T12:11:04Z","messageCount":5,"participants":["Bertrand Jacquin","Alan Chandler","Sven Verdoolaege","Andreas Ericsson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"15739","messageId":"4fb292fa0602081534x7f6e74c1veb8c4ea7ad5a83cc@mail.gmail.com","threadId":"3269","inReplyTo":null,"subject":"gitweb: View graphes & get tar","fromName":"Bertrand Jacquin","fromEmail":"beber.mailing@gmail.com","sentAt":"2006-02-08T23:34:43Z","receivedAt":"2006-02-08T23:34:43Z","isPatch":false,"sender":{"key":"beber.mailing@gmail.com","avatar":null},"body":"Hi,\n\nIs gitweb maintainer planned to allow people to get from gitweb ? It\ncould be something good for ungited/remote people to get a tar for a\nspecific tree.\ngd provide to create graphs and is often use in \"web project\" to\ngenerate graphe. Could it here generated a graph of branches like in\ngitk ?\nIt also could be cool to allow people to get binary files in an other\nmimetype that text/plain.\n\nHere are my wish :D it's worth what it's worth.\n\n--\nBeber\n#e.fr@freenode\n"},{"id":"15747","messageId":"200602090003.35354.alan@chandlerfamily.org.uk","threadId":"3269","inReplyTo":"4fb292fa0602081534x7f6e74c1veb8c4ea7ad5a83cc@mail.gmail.com","subject":"Re: gitweb: View graphes & get tar","fromName":"Alan Chandler","fromEmail":"alan@chandlerfamily.org.uk","sentAt":"2006-02-09T00:03:35Z","receivedAt":"2006-02-09T00:03:35Z","isPatch":false,"sender":{"key":"alan@chandlerfamily.org.uk","avatar":"https://gravatar.com/avatar/1862247e5ea8eac114c842f9dc3a5db6253754e24ef7171757cf97eedce48b8c?d=mp&s=160"},"body":"On Wednesday 08 February 2006 23:34, Bertrand Jacquin wrote:\n> Hi,\n>\n> Is gitweb maintainer planned to allow people to get from gitweb ? It\n> could be something good for ungited/remote people to get a tar for a\n> specific tree.\n> gd provide to create graphs and is often use in \"web project\" to\n> generate graphe. Could it here generated a graph of branches like in\n> gitk ?\n> It also could be cool to allow people to get binary files in an other\n> mimetype that text/plain.\n>\n> Here are my wish :D it's worth what it's worth.\n\nYou can do some of that a different way.\n\nI have it set up so that when I push a tag into my public git repositories, \nthat a post-update hook creates a tarball of the site and puts it into the \ndownload directory.\n\nThe hook is of the following form\n\n#!/bin/sh\n#\n# This script is used to create a tarball of the project and place it into the \n\"files\"\n# directory of the web site whenever a release is tagged in the repository\n#\nPROJECT=akcmoney\n# this should look at each positional parameter\nfor ref ; do\n#if its a tag then create a tarball\n        if [ \"${ref:0:10}\" == \"refs/tags/\" ] ; then\n                git-tar-tree ${ref:10} $PROJECT | gzip -9 \n> /var/www/chandlerfamily/files/$PROJECT/$PROJECT-${ref:10}.tar.gz\n        fi\ndone\n\n\n-- \nAlan Chandler\nhttp://www.chandlerfamily.org.uk\nOpen Source. It's the difference between trust and antitrust.\n"},{"id":"15782","messageId":"4fb292fa0602090312k1607e42fu88e03b788d339390@mail.gmail.com","threadId":"3269","inReplyTo":"200602090003.35354.alan@chandlerfamily.org.uk","subject":"Re: gitweb: View graphes & get tar","fromName":"Bertrand Jacquin","fromEmail":"beber.mailing@gmail.com","sentAt":"2006-02-09T11:12:42Z","receivedAt":"2006-02-09T11:12:42Z","isPatch":false,"sender":{"key":"beber.mailing@gmail.com","avatar":null},"body":"On 2/9/06, Alan Chandler <alan@chandlerfamily.org.uk> wrote:\n> On Wednesday 08 February 2006 23:34, Bertrand Jacquin wrote:\n> > Hi,\n> >\n> > Is gitweb maintainer planned to allow people to get from gitweb ? It\n> > could be something good for ungited/remote people to get a tar for a\n> > specific tree.\n> > gd provide to create graphs and is often use in \"web project\" to\n> > generate graphe. Could it here generated a graph of branches like in\n> > gitk ?\n> > It also could be cool to allow people to get binary files in an other\n> > mimetype that text/plain.\n> >\n> > Here are my wish :D it's worth what it's worth.\n>\n> You can do some of that a different way.\n>\n> I have it set up so that when I push a tag into my public git repositories,\n> that a post-update hook creates a tarball of the site and puts it into the\n> download directory.\n>\n> The hook is of the following form\n>\n> #!/bin/sh\n> #\n> # This script is used to create a tarball of the project and place it into the\n> \"files\"\n> # directory of the web site whenever a release is tagged in the repository\n> #\n> PROJECT=akcmoney\n> # this should look at each positional parameter\n> for ref ; do\n> #if its a tag then create a tarball\n>         if [ \"${ref:0:10}\" == \"refs/tags/\" ] ; then\n>                 git-tar-tree ${ref:10} $PROJECT | gzip -9\n> > /var/www/chandlerfamily/files/$PROJECT/$PROJECT-${ref:10}.tar.gz\n>         fi\n> done\n\nThat's ok, but with that I couldn't get a tar for _not_ the current\ntree. If i want to get a tar tree for 2 months old in not master\nbranch, I can't with that. The idea here is the create the tar on the\nfly, on the user demand.\nAnd also, I use http push so hooks can't be used :/\n\n>\n> --\n> Alan Chandler\n> http://www.chandlerfamily.org.uk\n> Open Source. It's the difference between trust and antitrust.\n> -\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n\n\n--\nBeber\n#e.fr@freenode\n"},{"id":"15783","messageId":"20060209111815.GB1241MdfPADPa@greensroom.kotnet.org","threadId":"3269","inReplyTo":"4fb292fa0602081534x7f6e74c1veb8c4ea7ad5a83cc@mail.gmail.com","subject":"Re: gitweb: View graphes & get tar","fromName":"Sven Verdoolaege","fromEmail":"skimo@kotnet.org","sentAt":"2006-02-09T11:18:15Z","receivedAt":"2006-02-09T11:18:15Z","isPatch":false,"sender":{"key":"skimo@kotnet.org","avatar":null},"body":"On Thu, Feb 09, 2006 at 12:34:43AM +0100, Bertrand Jacquin wrote:\n> Hi,\n> \n> Is gitweb maintainer planned to allow people to get from gitweb ? It\n> could be something good for ungited/remote people to get a tar for a\n> specific tree.\n\nI have something like that in my gitweb tree\n(http://www.liacs.nl/~sverdool/gitweb.cgi?p=gitweb.git;a=summary)\n\nI haven't updated it for a while, though...\nI usually get a lot of merge conflicts when Kay changes\na particular line that appear about a hundred times in his version and\nonly once in my version...\n\nskimo\n"},{"id":"15787","messageId":"43EB3158.8070003@op5.se","threadId":"3269","inReplyTo":"4fb292fa0602090312k1607e42fu88e03b788d339390@mail.gmail.com","subject":"Re: gitweb: View graphes & get tar","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2006-02-09T12:11:04Z","receivedAt":"2006-02-09T12:11:04Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Bertrand Jacquin wrote:\n> On 2/9/06, Alan Chandler <alan@chandlerfamily.org.uk> wrote:\n> \n>>On Wednesday 08 February 2006 23:34, Bertrand Jacquin wrote:\n>>\n>>\n>>I have it set up so that when I push a tag into my public git repositories,\n>>that a post-update hook creates a tarball of the site and puts it into the\n>>download directory.\n>>\n>>The hook is of the following form\n>>\n>>#!/bin/sh\n>>#\n>># This script is used to create a tarball of the project and place it into the\n>>\"files\"\n>># directory of the web site whenever a release is tagged in the repository\n>>#\n>>PROJECT=akcmoney\n>># this should look at each positional parameter\n>>for ref ; do\n>>#if its a tag then create a tarball\n>>        if [ \"${ref:0:10}\" == \"refs/tags/\" ] ; then\n>>                git-tar-tree ${ref:10} $PROJECT | gzip -9\n>>\n>>>/var/www/chandlerfamily/files/$PROJECT/$PROJECT-${ref:10}.tar.gz\n>>\n>>        fi\n>>done\n> \n> \n> That's ok, but with that I couldn't get a tar for _not_ the current\n> tree. If i want to get a tar tree for 2 months old in not master\n> branch, I can't with that. The idea here is the create the tar on the\n> fly, on the user demand.\n\n\nThis should be really trivial to implement, although I seriously doubt \nits usefulness, not to mention that for large projects it would be \npainfully slow. The only valid reason someone has to get a tar-ball of a \nrandom development point is to debug it, and for that they should check \nout the whole repo anyways, which will enable them to use the excellent \nbisect tool.\n\n\n> And also, I use http push so hooks can't be used :/\n> \n\nI suffer for you.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"}]}