{"thread":{"id":"44377","subject":"git-archive and submodules","startedAt":"2016-10-26T20:37:45Z","lastAt":"2016-10-26T21:04:27Z","messageCount":2,"participants":["Anatoly Borodin","Stefan Beller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"304913","messageId":"nur45i$e9b$1@blaine.gmane.org","threadId":"44377","inReplyTo":null,"subject":"git-archive and submodules","fromName":"Anatoly Borodin","fromEmail":"anatoly.borodin@gmail.com","sentAt":"2016-10-26T20:37:10Z","receivedAt":"2016-10-26T20:37:45Z","isPatch":false,"sender":{"key":"anatoly.borodin@gmail.com","avatar":"https://gravatar.com/avatar/59f11f1f45cf5ebb7bcca8da94b43cfe5f596d91c0a3e27ad0d2a861cc2bbce7?d=mp&s=160"},"body":"Hi All,\n\n\nare there plans to add submodules support to git-archive?\n\n\n-- \nMit freundlichen Grüßen,\nAnatoly Borodin\n\n"},{"id":"304917","messageId":"CAGZ79kYb8D+RRNqwJ4iHrdBFMvJCt4xhY_A0HFhhxZRCKSsZcg@mail.gmail.com","threadId":"44377","inReplyTo":"nur45i$e9b$1@blaine.gmane.org","subject":"Re: git-archive and submodules","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2016-10-26T21:04:21Z","receivedAt":"2016-10-26T21:04:27Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Wed, Oct 26, 2016 at 1:37 PM, Anatoly Borodin\n<anatoly.borodin@gmail.com> wrote:\n> are there plans to add submodules support to git-archive?\n\nplans by whom?\n\nGit is a project with contributors from all over the place. (different\ntime zones,\npeople motivated by different means, i.e. we have the hobbiest that\nscratches their\nitch, we have paid people working on Git because their employer wants\nthem to work on Git,\nthere are other people (who like to) use Git in their work environment\nand hack on it\nin their spare time to make it awesome.)\n\nAFAICT there are currently not a lot of people actively working on\nsubmodule features,\nthough there is some history, e.g. Jens Lehmann maintains a wiki\nspecialised on submodules\nhttps://github.com/jlehmann/git-submod-enhancements/wiki\nand archive is mentioned there as one of the many \"Issues still to be tackled\".\n\nMaybe you want to give it a try as you need it? I'd be happy to review any\nsubmodule related code.\n\nHow to get started:\n\n * git clone https://github.com/git/git\n * Read (at least skim) Documentation/SubmittingPatches)\n * Look at builtin/archive.c as a starting point (cmd_archive is called\n    when you call \"git archive ...\")\n * That leads to archive.c:write_archive, which calls parse_archive_args\n  There we'd want to add an option there for recursing into submodules.\n * See write_archive_entry (still in archive.c) that mentions S_ISGITLINK\n   Somewhere there you need to add code. :)\n\nThanks,\nStefan\n"}]}