Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: Subtree with submodule inside?

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:02:09

Jonathan Nieder [off-list ref] 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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help