Re: Subtree with submodule inside?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan Nieder <jrnieder@xxxxxxxxx> writes:

>  2. Submodules aware of their superproject and of the parent's branches.
>     In other words, submodules would act as thought under refs/ they
>     had a symlink
>
> 	parent -> ../../../refs
>
>     So you could do
>
> 	git checkout --recurse-submodules master
>
> 	cd path/to/submodule
> 	git checkout parent/heads/next
>
>     This would avoid danger from "git gc" in submodules and would
>     get rid of most of the motivation for named branches in the
>     submodule, I'd think.

Are you assuming that they share their object stores?

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]