git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add submodule-support to git archive
@ 2009-01-25  0:52 Lars Hjemli
  2009-01-25  0:52 ` [PATCH 1/2] tree.c: allow read_tree_recursive() to traverse gitlink entries Lars Hjemli
  2009-01-25  4:53 ` [PATCH 0/2] Add submodule-support to git archive Nanako Shiraishi
  0 siblings, 2 replies; 14+ messages in thread
From: Lars Hjemli @ 2009-01-25  0:52 UTC (permalink / raw)
  To: Junio C Hamano, Johannes Schindelin; +Cc: git

This is a cleaned up version of my previous patches which allows git archive
to include submodule content in the archive output.

The main difference between this series and the previous ones is that the
behaviour of `git archive --submodules` are now predictable; the content
included from submodules is defined by the gitlink entries found when
traversing the <tree-ish> specified on the command line, and the set of
submodules to include are defined by specifying either `--submodules=all` or
`--submodules=checkedout` (which is the default mode of operation, i.e. what
you get by only specifying `--submodules`).

To make the `--submodules` option more userfriendly, any submodule repository
discovered during traversal will be registered as an alternate odb (this
will typically be required to make the inter-repository traversal succeed).

Finally, the option `--submodules=group:<name>` is not yet implemented. I
wanted to get these first two patches published early since they define the
semantics of the --submodules option. Adding a 'group' selector on top is
mostly a question of pulling information out of .gitmodules and .git/config,
i.e. not very exciting (but it will be done ;-)

Lars Hjemli (2):
  tree.c: allow read_tree_recursive() to traverse gitlink entries
  archive.c: add support for --submodules[=(all|checkedout)]

 Documentation/git-archive.txt |    5 ++
 archive.c                     |   81 +++++++++++++++++++++++++-
 archive.h                     |    4 +
 builtin-ls-tree.c             |    9 +--
 cache.h                       |    1 +
 merge-recursive.c             |    2 +-
 sha1_file.c                   |   11 +++-
 t/t5001-archive-submodules.sh |  129 +++++++++++++++++++++++++++++++++++++++++
 tree.c                        |   28 +++++++++
 9 files changed, 259 insertions(+), 11 deletions(-)
 create mode 100755 t/t5001-archive-submodules.sh

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-01-26  0:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-25  0:52 [PATCH 0/2] Add submodule-support to git archive Lars Hjemli
2009-01-25  0:52 ` [PATCH 1/2] tree.c: allow read_tree_recursive() to traverse gitlink entries Lars Hjemli
2009-01-25  0:52   ` [PATCH 2/2] archive.c: add support for --submodules[=(all|checkedout)] Lars Hjemli
2009-01-25 11:57     ` Johannes Schindelin
2009-01-25 13:00       ` Lars Hjemli
2009-01-25 13:55         ` Johannes Schindelin
2009-01-25 11:43   ` [PATCH 1/2] tree.c: allow read_tree_recursive() to traverse gitlink entries Johannes Schindelin
2009-01-25 12:30     ` Lars Hjemli
2009-01-25  4:53 ` [PATCH 0/2] Add submodule-support to git archive Nanako Shiraishi
2009-01-25  8:18   ` Lars Hjemli
2009-01-25 20:35     ` Junio C Hamano
2009-01-25 23:12       ` Lars Hjemli
2009-01-25 23:25         ` Johannes Schindelin
2009-01-26  0:41         ` Junio C Hamano

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 NNTP newsgroup(s).