{"thread":{"id":"30289","subject":"git-archive and submodules","startedAt":"2012-04-19T20:10:52Z","lastAt":"2013-10-10T19:22:50Z","messageCount":6,"participants":["André Caron","Jens Lehmann","Robert Quattlebaum","Damien Regad","Amit Bakshi"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"189725","messageId":"CALKBF2gwVr0rPn0y8=cvwqOsUb7eQPH7EdK5U+gfZMzh=RpiKw@mail.gmail.com","threadId":"30289","inReplyTo":null,"subject":"git-archive and submodules","fromName":"André Caron","fromEmail":"andre.l.caron@gmail.com","sentAt":"2012-04-19T20:10:52Z","receivedAt":"2012-04-19T20:10:52Z","isPatch":false,"sender":{"key":"andre.l.caron@gmail.com","avatar":null},"body":"Hi,\n\nI've recently needed to create a source code archive as part of a\ncustom build target.  This repository uses submodules and I need to\ninclude the submodlule's source code in the archives too.  However,\ngit-archive does not have any option to do so.\n\nI've taken a quick look at the GMANE mailing list archives and it\nseems this provoked quite a discussion in 2009 and that Lars Hjemli\neven wrote a patch (in several flavors) for archive.c to include\nsubmodule-aware processing.  The lastest source code at\n`git.kernel.org` does not contain any traces of this patch (or\nsubmodule aware logic for that matter).  The mailing list archives are\nnot very convenient to browse and I can't figure out what the status\non this submodule-aware git-archive idea is.  Has this idea been\ncompletely rejected, or is it still work in progress?\n\nIn case you're wondering, I don't seem to be the only one needing to\ndo this.  I found at least two scripts on GitHub that implement this\nlogic with various levels of accuracy/completeness[1][2] and I've\nhacked an icky Windows batch file version [3] for minimal Windows\nsupport until this feature can be implemented in Git itself.  I don't\nmind putting in some time into a real patch if I need to, but I'm\ncurious about the fact that this has been requested before, a patch\nwas proposed and yet this is still not merged 4 years later.\n\nSo, what's the status on a submodule-aware git-archive command?\n\nThanks,\nAndré\n\n[1]: https://github.com/meitar/git-archive-all.sh\n[2]: https://github.com/Kentzo/git-archive-all\n[3]: https://github.com/AndreLouisCaron/git-archive-all.bat\n"},{"id":"189742","messageId":"4F911A2C.4070306@web.de","threadId":"30289","inReplyTo":"CALKBF2gwVr0rPn0y8=cvwqOsUb7eQPH7EdK5U+gfZMzh=RpiKw@mail.gmail.com","subject":"Re: git-archive and submodules","fromName":"Jens Lehmann","fromEmail":"jens.lehmann@web.de","sentAt":"2012-04-20T08:11:24Z","receivedAt":"2012-04-20T08:11:24Z","isPatch":false,"sender":{"key":"jens.lehmann@web.de","avatar":"https://avatars.githubusercontent.com/u/135220?v=4"},"body":"Am 19.04.2012 22:10, schrieb André Caron:\n> Hi,\n> \n> I've recently needed to create a source code archive as part of a\n> custom build target.  This repository uses submodules and I need to\n> include the submodlule's source code in the archives too.  However,\n> git-archive does not have any option to do so.\n> \n> I've taken a quick look at the GMANE mailing list archives and it\n> seems this provoked quite a discussion in 2009 and that Lars Hjemli\n> even wrote a patch (in several flavors) for archive.c to include\n> submodule-aware processing.  The lastest source code at\n> `git.kernel.org` does not contain any traces of this patch (or\n> submodule aware logic for that matter).  The mailing list archives are\n> not very convenient to browse and I can't figure out what the status\n> on this submodule-aware git-archive idea is.  Has this idea been\n> completely rejected, or is it still work in progress?\n\nThe idea is not rejected, this would be a worthwhile addition. It has\nbeen brought up again last May, but as far as I know it is stalled\nsince then:\nhttp://comments.gmane.org/gmane.comp.version-control.git/172851\n"},{"id":"189768","messageId":"CALKBF2jzL5-mHaVi1erA=EiF_DALF1Rvwv7yB5CfdEdQa2ZhBg@mail.gmail.com","threadId":"30289","inReplyTo":"4F911A2C.4070306@web.de","subject":"Fwd: git-archive and submodules","fromName":"André Caron","fromEmail":"andre.l.caron@gmail.com","sentAt":"2012-04-20T18:32:06Z","receivedAt":"2012-04-20T18:32:06Z","isPatch":false,"sender":{"key":"andre.l.caron@gmail.com","avatar":null},"body":"Hi Robert,\n\nI've recently raised the same submodule issue with git-archive you and\nLars have in the past.\n\nWhat's the status on your application of the git-archive submodule\npatch?  Have you applied the changes suggested by Lens Lehmann[1]?\nYour Git fork on GitHub[2] seems to have only applied Lars' patch and\nan unrelated SVN glob fix...\n\nSince you've touched this only last year, I'd like to know where you\nwere at and I can see if I can pick up where you left off (unless you\nwant to finish yourself).\n\nThanks,\nAndré\n\n[1]: http://comments.gmane.org/gmane.comp.version-control.git/172851\n[2]: https://github.com/darconeous/git\n\n\n---------- Forwarded message ----------\nFrom: Jens Lehmann <Jens.Lehmann@web.de>\nDate: Fri, Apr 20, 2012 at 4:11 AM\nSubject: Re: git-archive and submodules\nTo: André Caron <andre.l.caron@gmail.com>\nCc: git@vger.kernel.org\n\n\nAm 19.04.2012 22:10, schrieb André Caron:\n> Hi,\n>\n> I've recently needed to create a source code archive as part of a\n> custom build target.  This repository uses submodules and I need to\n> include the submodlule's source code in the archives too.  However,\n> git-archive does not have any option to do so.\n>\n> I've taken a quick look at the GMANE mailing list archives and it\n> seems this provoked quite a discussion in 2009 and that Lars Hjemli\n> even wrote a patch (in several flavors) for archive.c to include\n> submodule-aware processing.  The lastest source code at\n> `git.kernel.org` does not contain any traces of this patch (or\n> submodule aware logic for that matter).  The mailing list archives are\n> not very convenient to browse and I can't figure out what the status\n> on this submodule-aware git-archive idea is.  Has this idea been\n> completely rejected, or is it still work in progress?\n\nThe idea is not rejected, this would be a worthwhile addition. It has\nbeen brought up again last May, but as far as I know it is stalled\nsince then:\nhttp://comments.gmane.org/gmane.comp.version-control.git/172851\n"},{"id":"189843","messageId":"49D85565-3932-4B03-9568-E5CB75F39B9E@deepdarc.com","threadId":"30289","inReplyTo":"CALKBF2jzL5-mHaVi1erA=EiF_DALF1Rvwv7yB5CfdEdQa2ZhBg@mail.gmail.com","subject":"Re: git-archive and submodules","fromName":"Robert Quattlebaum","fromEmail":"darco@deepdarc.com","sentAt":"2012-04-22T18:47:29Z","receivedAt":"2012-04-22T18:47:29Z","isPatch":false,"sender":{"key":"darco@deepdarc.com","avatar":"https://gravatar.com/avatar/30254002c666c9d044dacb8250098bfccc718109066b1a295e8b04b1f5d679ea?d=mp&s=160"},"body":"I got too busy to continue working to get it included. Please feel free to pick up where I left off. \n\nSent from my iPad\n\nOn Apr 20, 2012, at 2:32 PM, André Caron <andre.l.caron@gmail.com> wrote:\n\n> Hi Robert,\n> \n> I've recently raised the same submodule issue with git-archive you and\n> Lars have in the past.\n> \n> What's the status on your application of the git-archive submodule\n> patch?  Have you applied the changes suggested by Lens Lehmann[1]?\n> Your Git fork on GitHub[2] seems to have only applied Lars' patch and\n> an unrelated SVN glob fix...\n> \n> Since you've touched this only last year, I'd like to know where you\n> were at and I can see if I can pick up where you left off (unless you\n> want to finish yourself).\n> \n> Thanks,\n> André\n> \n> [1]: http://comments.gmane.org/gmane.comp.version-control.git/172851\n> [2]: https://github.com/darconeous/git\n> \n> \n> ---------- Forwarded message ----------\n> From: Jens Lehmann <Jens.Lehmann@web.de>\n> Date: Fri, Apr 20, 2012 at 4:11 AM\n> Subject: Re: git-archive and submodules\n> To: André Caron <andre.l.caron@gmail.com>\n> Cc: git@vger.kernel.org\n> \n> \n> Am 19.04.2012 22:10, schrieb André Caron:\n>> Hi,\n>> \n>> I've recently needed to create a source code archive as part of a\n>> custom build target.  This repository uses submodules and I need to\n>> include the submodlule's source code in the archives too.  However,\n>> git-archive does not have any option to do so.\n>> \n>> I've taken a quick look at the GMANE mailing list archives and it\n>> seems this provoked quite a discussion in 2009 and that Lars Hjemli\n>> even wrote a patch (in several flavors) for archive.c to include\n>> submodule-aware processing.  The lastest source code at\n>> `git.kernel.org` does not contain any traces of this patch (or\n>> submodule aware logic for that matter).  The mailing list archives are\n>> not very convenient to browse and I can't figure out what the status\n>> on this submodule-aware git-archive idea is.  Has this idea been\n>> completely rejected, or is it still work in progress?\n> \n> The idea is not rejected, this would be a worthwhile addition. It has\n> been brought up again last May, but as far as I know it is stalled\n> since then:\n> http://comments.gmane.org/gmane.comp.version-control.git/172851\n> \n"},{"id":"228696","messageId":"loom.20131010T160446-236@post.gmane.org","threadId":"30289","inReplyTo":"49D85565-3932-4B03-9568-E5CB75F39B9E@deepdarc.com","subject":"Re: git-archive and submodules","fromName":"Damien Regad","fromEmail":"dregad@mantisbt.org","sentAt":"2013-10-10T14:09:08Z","receivedAt":"2013-10-10T14:09:08Z","isPatch":false,"sender":{"key":"dregad@mantisbt.org","avatar":"https://avatars.githubusercontent.com/u/449891?v=4"},"body":"Robert Quattlebaum <darco <at> deepdarc.com> writes:\n> I got too busy to continue working to get it included. Please feel free to\npick up where I left off. \n> \n> On Apr 20, 2012, at 2:32 PM, André Caron <andre.l.caron <at> gmail.com> wrote:\n> > Since you've touched this only last year, I'd like to know where you\n> > were at and I can see if I can pick up where you left off (unless you\n> > want to finish yourself).\n\nGreetings\n\nI was just wondering whether there been any progress on this topic since\nlast year... André ?\n\nCheers\nDamien\n"},{"id":"228708","messageId":"CAFGOX=WL8GEpZc1b0Rcqt_tMyOzL-nB20Jj=7PArOh82T34JoA@mail.gmail.com","threadId":"30289","inReplyTo":"loom.20131010T160446-236@post.gmane.org","subject":"Re: git-archive and submodules","fromName":"Amit Bakshi","fromEmail":"ambakshi@gmail.com","sentAt":"2013-10-10T19:22:50Z","receivedAt":"2013-10-10T19:22:50Z","isPatch":false,"sender":{"key":"ambakshi@gmail.com","avatar":"https://avatars.githubusercontent.com/u/32329?v=4"},"body":"I wrote a simple bash script that does git-archive recursively with\nsubmodules. It first does a full mirror clone of the repo and\nsubmodules, so that subsequent calls are faster.\n\nhttps://github.com/ambakshi/git-archiver\n\n\nAmit\n\n\nOn Thu, Oct 10, 2013 at 7:09 AM, Damien Regad <dregad@mantisbt.org> wrote:\n> Robert Quattlebaum <darco <at> deepdarc.com> writes:\n>> I got too busy to continue working to get it included. Please feel free to\n> pick up where I left off.\n>>\n>> On Apr 20, 2012, at 2:32 PM, André Caron <andre.l.caron <at> gmail.com> wrote:\n>> > Since you've touched this only last year, I'd like to know where you\n>> > were at and I can see if I can pick up where you left off (unless you\n>> > want to finish yourself).\n>\n> Greetings\n>\n> I was just wondering whether there been any progress on this topic since\n> last year... André ?\n>\n> Cheers\n> Damien\n>\n>\n>\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"}]}