git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] What to you think about a loose status for submodules?
@ 2009-10-21 16:01 Heiko Voigt
  2009-10-21 20:23 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Heiko Voigt @ 2009-10-21 16:01 UTC (permalink / raw)
  To: git; +Cc: Jens Lehmann, Lars Hjemli

Hi,

for some time now I have been thinking about submodules which are
not checked out by default. So for example if you have a project which
consist of the submodules:

project/core
       /help
       /app
...

Consider the situation that 'help' is really big because it is a user
friendly application ;)

So you usually do not need the help folder to develop the application
but it still is tied to a certain revision.

For such a workflow I would like to implement what I call 'loose'
submodules. Where a

  git clone project.git
  cd project
  git submodule init && git submodule update

would omit the 'help' folder. But in case I specify it directly like

  git submodule init help

it would update to the recorded revision.

Of course the relation would be configurable. E.g.:

  git config submodule."name".relation loose

and the opposite as

  git config submodule."name".relation tight

Initially the implementation would only deal with the initialization
case. As a second step I would like to deal with the situation whether a
submodule should be shown as changed or not. What do you think about such
an extension?

cheers Heiko

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

end of thread, other threads:[~2010-01-20 19:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-21 16:01 [RFC] What to you think about a loose status for submodules? Heiko Voigt
2009-10-21 20:23 ` Junio C Hamano
2009-10-22 19:44   ` Heiko Voigt
2009-10-22 19:58     ` Junio C Hamano
2010-01-20 18:16       ` Heiko Voigt
2010-01-20 19:45         ` 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).