From: "André Caron" <andre.l.caron@gmail.com>
To: git@vger.kernel.org
Subject: git-archive and submodules
Date: Thu, 19 Apr 2012 16:10:52 -0400 [thread overview]
Message-ID: <CALKBF2gwVr0rPn0y8=cvwqOsUb7eQPH7EdK5U+gfZMzh=RpiKw@mail.gmail.com> (raw)
Hi,
I've recently needed to create a source code archive as part of a
custom build target. This repository uses submodules and I need to
include the submodlule's source code in the archives too. However,
git-archive does not have any option to do so.
I've taken a quick look at the GMANE mailing list archives and it
seems this provoked quite a discussion in 2009 and that Lars Hjemli
even wrote a patch (in several flavors) for archive.c to include
submodule-aware processing. The lastest source code at
`git.kernel.org` does not contain any traces of this patch (or
submodule aware logic for that matter). The mailing list archives are
not very convenient to browse and I can't figure out what the status
on this submodule-aware git-archive idea is. Has this idea been
completely rejected, or is it still work in progress?
In case you're wondering, I don't seem to be the only one needing to
do this. I found at least two scripts on GitHub that implement this
logic with various levels of accuracy/completeness[1][2] and I've
hacked an icky Windows batch file version [3] for minimal Windows
support until this feature can be implemented in Git itself. I don't
mind putting in some time into a real patch if I need to, but I'm
curious about the fact that this has been requested before, a patch
was proposed and yet this is still not merged 4 years later.
So, what's the status on a submodule-aware git-archive command?
Thanks,
André
[1]: https://github.com/meitar/git-archive-all.sh
[2]: https://github.com/Kentzo/git-archive-all
[3]: https://github.com/AndreLouisCaron/git-archive-all.bat
next reply other threads:[~2012-04-19 20:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-19 20:10 André Caron [this message]
2012-04-20 8:11 ` git-archive and submodules Jens Lehmann
2012-04-20 18:32 ` Fwd: " André Caron
2012-04-22 18:47 ` Robert Quattlebaum
2013-10-10 14:09 ` Damien Regad
2013-10-10 19:22 ` Amit Bakshi
-- strict thread matches above, loose matches on Subject: below --
2016-10-26 20:37 Anatoly Borodin
2016-10-26 21:04 ` Stefan Beller
2009-07-20 16:22 Woody Gilk
2009-07-20 17:33 ` Avery Pennarun
2009-07-20 20:56 ` Thomas Rast
2008-03-29 13:47 Whit Armstrong
2008-03-29 13:52 ` Shawn O. Pearce
2008-03-29 14:13 ` Whit Armstrong
2008-03-29 21:05 ` CJ van den Berg
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALKBF2gwVr0rPn0y8=cvwqOsUb7eQPH7EdK5U+gfZMzh=RpiKw@mail.gmail.com' \
--to=andre.l.caron@gmail.com \
--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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).