git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Stefan Beller <sbeller@google.com>
To: Anatoly Borodin <anatoly.borodin@gmail.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: git-archive and submodules
Date: Wed, 26 Oct 2016 14:04:21 -0700	[thread overview]
Message-ID: <CAGZ79kYb8D+RRNqwJ4iHrdBFMvJCt4xhY_A0HFhhxZRCKSsZcg@mail.gmail.com> (raw)
In-Reply-To: <nur45i$e9b$1@blaine.gmane.org>

On Wed, Oct 26, 2016 at 1:37 PM, Anatoly Borodin
<anatoly.borodin@gmail.com> wrote:
> are there plans to add submodules support to git-archive?

plans by whom?

Git is a project with contributors from all over the place. (different
time zones,
people motivated by different means, i.e. we have the hobbiest that
scratches their
itch, we have paid people working on Git because their employer wants
them to work on Git,
there are other people (who like to) use Git in their work environment
and hack on it
in their spare time to make it awesome.)

AFAICT there are currently not a lot of people actively working on
submodule features,
though there is some history, e.g. Jens Lehmann maintains a wiki
specialised on submodules
https://github.com/jlehmann/git-submod-enhancements/wiki
and archive is mentioned there as one of the many "Issues still to be tackled".

Maybe you want to give it a try as you need it? I'd be happy to review any
submodule related code.

How to get started:

 * git clone https://github.com/git/git
 * Read (at least skim) Documentation/SubmittingPatches)
 * Look at builtin/archive.c as a starting point (cmd_archive is called
    when you call "git archive ...")
 * That leads to archive.c:write_archive, which calls parse_archive_args
  There we'd want to add an option there for recursing into submodules.
 * See write_archive_entry (still in archive.c) that mentions S_ISGITLINK
   Somewhere there you need to add code. :)

Thanks,
Stefan

  reply	other threads:[~2016-10-26 21:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-26 20:37 git-archive and submodules Anatoly Borodin
2016-10-26 21:04 ` Stefan Beller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-04-19 20:10 André Caron
2012-04-20  8:11 ` 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
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=CAGZ79kYb8D+RRNqwJ4iHrdBFMvJCt4xhY_A0HFhhxZRCKSsZcg@mail.gmail.com \
    --to=sbeller@google.com \
    --cc=anatoly.borodin@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).