Re: [RFC/PATCH v3 3/3] archive.c: add basic support for submodules
- From
- Lars Hjemli <hjemli@gmail.com>
- Date
- Jan 24, 2009, 20:02 UTC
- Message-ID
- <8c5c35580901241202k5ed436d7y2fafded2f0883c48@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.1.00.0901242049580.14855@racer>
On Sat, Jan 24, 2009 at 20:52, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 14 quoted lines
> Hi, > > On Sat, 24 Jan 2009, Lars Hjemli wrote: > >> $ git archive --submodules <tree-ish>: Create an archive which >> includes the trees of all gitlink entries in <tree-ish>, fail unless >> all the required objects are available. >> >> $ git archive --submodules=<group>: Same as above, but only traverse >> submodules in the specified group (as defined in $GIT_CONFIG). > > How about having the former with --submodules='*' and let --submodules > without argument include those submodules that are checked out (none in a > bare repository)?
Yeah, that might make more sense (since you'd normally not have access to the content of non-checked out submodules). I'm also considering something like --submodules[=(all|checkedout|[group:]<name>)], i.e. the 'group:'-part could be optional as long as <name> is unambiguous.
-- larsh