From: Lars Hjemli Date: Sat, 24 Jan 2009 20:02:39 GMT Subject: Re: [RFC/PATCH v3 3/3] archive.c: add basic support for submodules Message-ID: <8c5c35580901241202k5ed436d7y2fafded2f0883c48@mail.gmail.com> In-Reply-To: On Sat, Jan 24, 2009 at 20:52, Johannes Schindelin wrote: > Hi, > > On Sat, 24 Jan 2009, Lars Hjemli wrote: > >> $ git archive --submodules : Create an archive which >> includes the trees of all gitlink entries in , fail unless >> all the required objects are available. >> >> $ git archive --submodules=: 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:])], i.e. the 'group:'-part could be optional as long as is unambiguous. -- larsh