Re: [PATCH] Teach remote machinery about remotes.default config variable

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mark Levedahl
Date: Sunday, January 13, 2008 - 8:47 am

Junio C Hamano wrote:
Carrying the above forward...  Assume I have a checked out project as 
above, then in top-level master project I do:

git remote add zoo git://zoo.tar.fu hisfork.git
git fetch zoo
git checkout --track -b fork zoo/fork
git submodule update

I claim the submodule machinery *should* now follow master's default 
remote, which is "zoo", for the current branch. In addition, the 
submodule machinery should define remote "zoo" in each submodule  where 
it does not already exist, using the same logic using in the original 
init/update phase. This should only apply to modules defined using 
relative urls.

Basically, this formalizes the notion that:

* submodules defined using relative urls are "owned" by the master 
project and will exist anywhere the master does.
* submodules defined using absolute urls are incorporated into the 
project but are separately managed. (While some improved mechanism to 
automate their management from top-level may be proposed, it is not 
obvious to me nor addressed here.)

The subsequent patch modifies git-submodule to implement this logic, and 
applies on top of my previous series.

(Note: I cannot find my latest series in the git-archives on gmane nor 
on marc.info, both have only part, and I am suspicious that something 
went wrong in my sending via gmail, so I am resending the series here, 
now five patches long. Please excuse if this is redundant).

Mark

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Teach remote machinery about remotes.default c ..., Mark Levedahl, (Sun Jan 13, 8:47 am)
[PATCH] git-clone - Set remotes.origin config variable, Mark Levedahl, (Sun Jan 13, 9:27 am)
Re: [PATCH] Teach remote machinery about remotes.default c ..., Johannes Schindelin, (Sun Jan 13, 2:27 pm)
safecrlf not in 1.5.4 (was Re: [PATCH] Teach remote machin ..., Steffen Prohaska, (Sun Jan 13, 11:49 pm)
Re: safecrlf not in 1.5.4, Junio C Hamano, (Mon Jan 14, 12:30 am)
Re: [msysGit] Re: safecrlf not in 1.5.4, Steffen Prohaska, (Mon Jan 14, 1:29 am)
Re: safecrlf not in 1.5.4, Dmitry Potapov, (Mon Jan 14, 2:04 am)
Re: [PATCH] Teach remote machinery about remotes.default c ..., Johannes Schindelin, (Mon Jan 14, 4:18 am)
Re: safecrlf not in 1.5.4, Pierre Habouzit, (Mon Jan 14, 10:35 am)
Re: [msysGit] Re: safecrlf not in 1.5.4, Junio C Hamano, (Mon Jan 14, 12:41 pm)
What's not in 'master' but should be, Junio C Hamano, (Fri Jan 18, 2:41 am)
Re: What's not in 'master' but should be, Lars Hjemli, (Fri Jan 18, 3:15 am)
Re: What's not in 'master' but should be, Junio C Hamano, (Fri Jan 18, 3:24 am)
What's not in 'master', and likely not to be until 1.5.4, Junio C Hamano, (Fri Jan 18, 3:40 am)
Re: What's not in 'master' but should be, Lars Hjemli, (Fri Jan 18, 3:53 am)
Re: What's not in 'master' but should be, Junio C Hamano, (Fri Jan 18, 4:09 am)
Re: What's not in 'master' but should be, Lars Hjemli, (Fri Jan 18, 4:54 am)
Re: What's not in 'master' but should be, Johannes Schindelin, (Fri Jan 18, 5:34 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Steffen Prohaska, (Fri Jan 18, 5:53 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Steffen Prohaska, (Fri Jan 18, 6:04 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Fri Jan 18, 6:09 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Fri Jan 18, 6:11 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Steffen Prohaska, (Fri Jan 18, 6:23 am)
Re: What's not in 'master' but should be, Lars Hjemli, (Fri Jan 18, 7:19 am)
Re: What's not in 'master' but should be, Johannes Schindelin, (Fri Jan 18, 11:28 am)
Re: What's not in 'master' but should be, Johannes Schindelin, (Fri Jan 18, 11:36 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Fri Jan 18, 1:36 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Fri Jan 18, 1:58 pm)
Re: What's not in 'master' but should be, Mike Hommey, (Fri Jan 18, 11:14 pm)
Re: [PATCH] http-push: fix webdav lock leak., Grégoire Barbier, (Sat Jan 19, 8:21 am)
Re: [PATCH] http-push: fix webdav lock leak., Johannes Schindelin, (Sat Jan 19, 4:38 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Shawn O. Pearce, (Sun Jan 20, 9:46 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Imran M Yousuf, (Sun Jan 20, 10:55 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Junio C Hamano, (Sun Jan 20, 11:29 pm)
[PATCH] submodule: Document the details of the command lin ..., Steffen Prohaska, (Sun Jan 20, 11:41 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Steffen Prohaska, (Sun Jan 20, 11:42 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Mon Jan 21, 3:37 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Shawn O. Pearce, (Tue Jan 22, 9:44 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Wed Jan 23, 4:12 am)
Re: What's not in 'master' but should be, Johannes Schindelin, (Mon Feb 18, 12:57 pm)