legit icon indicating copy to clipboard operation
legit copied to clipboard

[feature request] submodule support

Open Autoplectic opened this issue 13 years ago • 9 comments

i think legit could grow some sort of submodule support -- perhaps legit sync would update all submodules? or maybe a dedicated command to work with submodules.

Autoplectic avatar Feb 17 '12 23:02 Autoplectic

+1000. submodules are my biggest pain point for the git interface today.

I think it should be a separate command.

kennethreitz avatar Feb 17 '12 23:02 kennethreitz

Some pretty serious thought will need to go into this.

What would your ideal git submodule interface look like?

kennethreitz avatar Mar 25 '12 02:03 kennethreitz

I think it would be nice to have an optional arg to the sync command to also update submodules, which could be set as the default option if desired, using either a dotfile or environment variable.

cayblood avatar Mar 29 '12 07:03 cayblood

to start with, make the existent commands work when inside a submodule. right now it refers to the main repo instead of the submodule repo

franciscolourenco avatar Mar 30 '12 19:03 franciscolourenco

This is fixed actually and will be included in the next release.

kennethreitz avatar Mar 30 '12 19:03 kennethreitz

can it be easily updated with pip?

franciscolourenco avatar Mar 30 '12 19:03 franciscolourenco

Yes:

$ brew install legit --upgrade

kennethreitz avatar Mar 31 '12 05:03 kennethreitz

yupi

On Saturday, March 31, 2012 at 06:20 , Kenneth Reitz wrote:

Yes:

$ brew install legit --upgrade


Reply to this email directly or view it on GitHub: https://github.com/kennethreitz/legit/issues/26#issuecomment-4856088

franciscolourenco avatar Mar 31 '12 11:03 franciscolourenco

You should git submodule update --init --recursive after each switch and sync so that people don't have to think about submodules in most cases. Not a separate command!

philfreo avatar Nov 12 '12 23:11 philfreo