{"thread":{"id":"15010","subject":"does anything like cvs export exist in git?","startedAt":"2008-08-14T21:20:10Z","lastAt":"2008-08-14T22:44:40Z","messageCount":9,"participants":["Mark Struberg","Matthieu Moy","Shawn O. Pearce","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"87234","messageId":"977100.98240.qm@web27803.mail.ukl.yahoo.com","threadId":"15010","inReplyTo":null,"subject":"does anything like cvs export exist in git?","fromName":"Mark Struberg","fromEmail":"struberg@yahoo.de","sentAt":"2008-08-14T21:20:10Z","receivedAt":"2008-08-14T21:20:10Z","isPatch":false,"sender":{"key":"struberg@yahoo.de","avatar":"https://gravatar.com/avatar/119742c3e8dbc8db35a92bdff0581aec8d364d415f770e60431cba262daa974f?d=mp&s=160"},"body":"Hi!\n\nI'm the initial author of the Apache maven-scm-providers-git and I need to update our SCM-Matrix. \n\nThis is just for making sure I did not oversee anything.\n\nI didn't came across anything like 'cvs export' and I do not think git really needs this, since it doesn't pollute the working directories with lots of waste like CVS and SVN does. \nBut I just want to make sure to not build workarounds in our scm-provider (checkout + afterwards blasting the GIT_DIR) for things that do exist natively in git.\n\ntxs in advance and\nLieGrü,\nstrub\n\n__________________________________________________\nDo You Yahoo!?\nSie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. \nhttp://mail.yahoo.com \n"},{"id":"87235","messageId":"vpqwsijjno1.fsf@bauges.imag.fr","threadId":"15010","inReplyTo":"977100.98240.qm@web27803.mail.ukl.yahoo.com","subject":"Re: does anything like cvs export exist in git?","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2008-08-14T21:23:58Z","receivedAt":"2008-08-14T21:23:58Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"Mark Struberg <struberg@yahoo.de> writes:\n\n> This is just for making sure I did not oversee anything.\n\nDid you look at git archive?\n\n-- \nMatthieu\n"},{"id":"87236","messageId":"20080814212654.GS3782@spearce.org","threadId":"15010","inReplyTo":"977100.98240.qm@web27803.mail.ukl.yahoo.com","subject":"Re: does anything like cvs export exist in git?","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-08-14T21:26:54Z","receivedAt":"2008-08-14T21:26:54Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Mark Struberg <struberg@yahoo.de> wrote:\n> I'm the initial author of the Apache maven-scm-providers-git and\n> I need to update our SCM-Matrix.\n> \n> This is just for making sure I did not oversee anything.\n> \n> I didn't came across anything like 'cvs export' and I do not\n> think git really needs this, since it doesn't pollute the working\n> directories with lots of waste like CVS and SVN does.\n> \n> But I just want to make sure to not build workarounds in our\n> scm-provider (checkout + afterwards blasting the GIT_DIR) for things\n> that do exist natively in git.\n\nYou can use:\n\n  git archive --tar HEAD | (mkdir ../dest;cd ../dest;tar xf -)\n\nOr you can do something even more bizzare like:\n\n  export GIT_INDEX_FILE=/tmp/$$.index;\n  export GIT_WORK_TREE=../dest;\n  export GIT_DIR=.git;\n  git read-tree HEAD &&\n  git checkout-index --force --all &&\n  rm $GIT_INDEX_FILE\n\n-- \nShawn.\n"},{"id":"87239","messageId":"90329.57791.qm@web27805.mail.ukl.yahoo.com","threadId":"15010","inReplyTo":"vpqwsijjno1.fsf@bauges.imag.fr","subject":"Re: does anything like cvs export exist in git?","fromName":"Mark Struberg","fromEmail":"struberg@yahoo.de","sentAt":"2008-08-14T21:46:08Z","receivedAt":"2008-08-14T21:46:08Z","isPatch":false,"sender":{"key":"struberg@yahoo.de","avatar":"https://gravatar.com/avatar/119742c3e8dbc8db35a92bdff0581aec8d364d415f770e60431cba262daa974f?d=mp&s=160"},"body":"Txs Matthieu, but unfortunately git-archive only knows the formats tar and zip, but no 'files' or whatever we may call it.\n\ntxs anyway,\nmark\n\n\n--- Matthieu Moy <Matthieu.Moy@imag.fr> schrieb am Do, 14.8.2008:\n\n> Von: Matthieu Moy <Matthieu.Moy@imag.fr>\n> Betreff: Re: does anything like cvs export exist in git?\n> An: \"Mark Struberg\" <struberg@yahoo.de>\n> CC: git@vger.kernel.org\n> Datum: Donnerstag, 14. August 2008, 23:23\n> Mark Struberg <struberg@yahoo.de> writes:\n> \n> > This is just for making sure I did not oversee\n> anything.\n> \n> Did you look at git archive?\n> \n> -- \n> Matthieu\n\n__________________________________________________\nDo You Yahoo!?\nSie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. \nhttp://mail.yahoo.com \n"},{"id":"87246","messageId":"52593.49180.qm@web27802.mail.ukl.yahoo.com","threadId":"15010","inReplyTo":"20080814212654.GS3782@spearce.org","subject":"Re: does anything like cvs export exist in git?","fromName":"Mark Struberg","fromEmail":"struberg@yahoo.de","sentAt":"2008-08-14T22:09:12Z","receivedAt":"2008-08-14T22:09:12Z","isPatch":false,"sender":{"key":"struberg@yahoo.de","avatar":"https://gravatar.com/avatar/119742c3e8dbc8db35a92bdff0581aec8d364d415f770e60431cba262daa974f?d=mp&s=160"},"body":"Hi Shawn!\n\nSince maven-scm should run under various OS (including Windoof) the tar thingy will not work out.\n\nThe second approach is close to my original attempt to simply clone + checkout + rm -rf .git, isn't?.\n\nAt least I now know that it's really unlikely that this functionality does exist yet.\n\ntxs and LieGrü,\nstrub\n\n\n\n--- Shawn O. Pearce <spearce@spearce.org> schrieb am Do, 14.8.2008:\n\n> Von: Shawn O. Pearce <spearce@spearce.org>\n> Betreff: Re: does anything like cvs export exist in git?\n> An: \"Mark Struberg\" <struberg@yahoo.de>\n> CC: git@vger.kernel.org\n> Datum: Donnerstag, 14. August 2008, 23:26\n> Mark Struberg <struberg@yahoo.de> wrote:\n> > I'm the initial author of the Apache\n> maven-scm-providers-git and\n> > I need to update our SCM-Matrix.\n> > \n> > This is just for making sure I did not oversee\n> anything.\n> > \n> > I didn't came across anything like 'cvs\n> export' and I do not\n> > think git really needs this, since it doesn't\n> pollute the working\n> > directories with lots of waste like CVS and SVN does.\n> > \n> > But I just want to make sure to not build workarounds\n> in our\n> > scm-provider (checkout + afterwards blasting the\n> GIT_DIR) for things\n> > that do exist natively in git.\n> \n> You can use:\n> \n>   git archive --tar HEAD | (mkdir ../dest;cd ../dest;tar xf\n> -)\n> \n> Or you can do something even more bizzare like:\n> \n>   export GIT_INDEX_FILE=/tmp/$$.index;\n>   export GIT_WORK_TREE=../dest;\n>   export GIT_DIR=.git;\n>   git read-tree HEAD &&\n>   git checkout-index --force --all &&\n>   rm $GIT_INDEX_FILE\n> \n> -- \n> Shawn.\n\n__________________________________________________\nDo You Yahoo!?\nSie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. \nhttp://mail.yahoo.com \n"},{"id":"87247","messageId":"20080814221148.GB10544@machine.or.cz","threadId":"15010","inReplyTo":"977100.98240.qm@web27803.mail.ukl.yahoo.com","subject":"Re: does anything like cvs export exist in git?","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2008-08-14T22:11:48Z","receivedAt":"2008-08-14T22:11:48Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"  Hi,\n\nOn Thu, Aug 14, 2008 at 09:20:10PM +0000, Mark Struberg wrote:\n> I'm the initial author of the Apache maven-scm-providers-git and I need to update our SCM-Matrix. \n> \n> This is just for making sure I did not oversee anything.\n> \n> I didn't came across anything like 'cvs export' and I do not think git really needs this, since it doesn't pollute the working directories with lots of waste like CVS and SVN does. \n> But I just want to make sure to not build workarounds in our scm-provider (checkout + afterwards blasting the GIT_DIR) for things that do exist natively in git.\n\n  I'm not sure what exactly do you want, but couldn't you abuse\ngit-cvsserver for the job?\n\n\t\t\t\tPetr \"Pasky\" Baudis\n"},{"id":"87248","messageId":"20080814221221.GT3782@spearce.org","threadId":"15010","inReplyTo":"52593.49180.qm@web27802.mail.ukl.yahoo.com","subject":"Re: does anything like cvs export exist in git?","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-08-14T22:12:21Z","receivedAt":"2008-08-14T22:12:21Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Mark Struberg <struberg@yahoo.de> wrote:\n> Since maven-scm should run under various OS (including Windoof)\n> the tar thingy will not work out.\n\nOK.  Maven could also consider using JGit, since its pure Java\nand thus just as portable as the JRE is.\n\n> The second approach is close to my original attempt to simply\n> clone + checkout + rm -rf .git, isn't?.\n\nYes, but relies on a few plumbing level tricks to avoid the time\nconsuming aspects of a clone.\n\n> At least I now know that it's really unlikely that this\n> functionality does exist yet.\n\nIts not implemented for a reason; we suggest to users to use\ngit-archive when they need to export a tree outside of Git.\n \n> --- Shawn O. Pearce <spearce@spearce.org> schrieb am Do, 14.8.2008:\n> > Von: Shawn O. Pearce <spearce@spearce.org>\n> > Betreff: Re: does anything like cvs export exist in git?\n> > An: \"Mark Struberg\" <struberg@yahoo.de>\n> > CC: git@vger.kernel.org\n> > Datum: Donnerstag, 14. August 2008, 23:26\n> > Mark Struberg <struberg@yahoo.de> wrote:\n> > > I'm the initial author of the Apache\n> > maven-scm-providers-git and\n> > > I need to update our SCM-Matrix.\n> > > \n> > > This is just for making sure I did not oversee\n> > anything.\n> > > \n> > > I didn't came across anything like 'cvs\n> > export' and I do not\n> > > think git really needs this, since it doesn't\n> > pollute the working\n> > > directories with lots of waste like CVS and SVN does.\n> > > \n> > > But I just want to make sure to not build workarounds\n> > in our\n> > > scm-provider (checkout + afterwards blasting the\n> > GIT_DIR) for things\n> > > that do exist natively in git.\n> > \n> > You can use:\n> > \n> >   git archive --tar HEAD | (mkdir ../dest;cd ../dest;tar xf\n> > -)\n> > \n> > Or you can do something even more bizzare like:\n> > \n> >   export GIT_INDEX_FILE=/tmp/$$.index;\n> >   export GIT_WORK_TREE=../dest;\n> >   export GIT_DIR=.git;\n> >   git read-tree HEAD &&\n> >   git checkout-index --force --all &&\n> >   rm $GIT_INDEX_FILE\n\n-- \nShawn.\n"},{"id":"87255","messageId":"670518.86623.qm@web27804.mail.ukl.yahoo.com","threadId":"15010","inReplyTo":"20080814221148.GB10544@machine.or.cz","subject":"Re: does anything like cvs export exist in git?","fromName":"Mark Struberg","fromEmail":"struberg@yahoo.de","sentAt":"2008-08-14T22:31:15Z","receivedAt":"2008-08-14T22:31:15Z","isPatch":false,"sender":{"key":"struberg@yahoo.de","avatar":"https://gravatar.com/avatar/119742c3e8dbc8db35a92bdff0581aec8d364d415f770e60431cba262daa974f?d=mp&s=160"},"body":"Hi Petr!\n\nbasically a good idea, but git-cvsserver hast to be run as a _server_, so this is not an option here :(\n\ntxs anyway,\nmark\n\n\n--- Petr Baudis <pasky@suse.cz> schrieb am Fr, 15.8.2008:\n\n> Von: Petr Baudis <pasky@suse.cz>\n> Betreff: Re: does anything like cvs export exist in git?\n> An: \"Mark Struberg\" <struberg@yahoo.de>\n> CC: git@vger.kernel.org\n> Datum: Freitag, 15. August 2008, 0:11\n> Hi,\n> \n> On Thu, Aug 14, 2008 at 09:20:10PM +0000, Mark Struberg\n> wrote:\n> > I'm the initial author of the Apache\n> maven-scm-providers-git and I need to update our SCM-Matrix.\n> \n> > \n> > This is just for making sure I did not oversee\n> anything.\n> > \n> > I didn't came across anything like 'cvs\n> export' and I do not think git really needs this, since\n> it doesn't pollute the working directories with lots of\n> waste like CVS and SVN does. \n> > But I just want to make sure to not build workarounds\n> in our scm-provider (checkout + afterwards blasting the\n> GIT_DIR) for things that do exist natively in git.\n> \n>   I'm not sure what exactly do you want, but\n> couldn't you abuse\n> git-cvsserver for the job?\n> \n> \t\t\t\tPetr \"Pasky\" Baudis\n\n__________________________________________________\nDo You Yahoo!?\nSie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. \nhttp://mail.yahoo.com \n"},{"id":"87262","messageId":"799439.71089.qm@web27808.mail.ukl.yahoo.com","threadId":"15010","inReplyTo":"20080814221221.GT3782@spearce.org","subject":"Re: does anything like cvs export exist in git?","fromName":"Mark Struberg","fromEmail":"struberg@yahoo.de","sentAt":"2008-08-14T22:44:40Z","receivedAt":"2008-08-14T22:44:40Z","isPatch":false,"sender":{"key":"struberg@yahoo.de","avatar":"https://gravatar.com/avatar/119742c3e8dbc8db35a92bdff0581aec8d364d415f770e60431cba262daa974f?d=mp&s=160"},"body":"Hi Shawn!\n\n--- Shawn O. Pearce <spearce@spearce.org> schrieb am Fr, 15.8.2008:\n\n> Von: Shawn O. Pearce <spearce@spearce.org>\n> Betreff: Re: does anything like cvs export exist in git?\n> An: \"Mark Struberg\" <struberg@yahoo.de>\n> CC: git@vger.kernel.org\n> Datum: Freitag, 15. August 2008, 0:12\n> Mark Struberg <struberg@yahoo.de> wrote:\n> > Since maven-scm should run under various OS (including\n> Windoof)\n> > the tar thingy will not work out.\n> \n> OK.  Maven could also consider using JGit, since its pure\n> Java\n> and thus just as portable as the JRE is.\n\nI looked at JGit when I started implementation back in October last year but it wasn't rdy then. This is definitely on my list, and the whole project is already setup to support both, a native plus a Java implementation. But just one step after the other, I'd like to help finishing the german git manpages first ;)\n\n> > At least I now know that it's really unlikely that this\n> > functionality does exist yet.\n> \n> Its not implemented for a reason; we suggest to users to\n> use\n> git-archive when they need to export a tree outside of Git.\nYup, this is completely ok from a git perspective, but maven-scm aims to deliver the same result for each SCM system. And since cvs has been first...\nAlso, export is not very important (and also not time critical), all really important functions already work fine.\n\ntxs and LieGrü,\nstrub\n\n\n__________________________________________________\nDo You Yahoo!?\nSie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. \nhttp://mail.yahoo.com \n"}]}