Re: [QUESTION] Selective fetch possible?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Shawn O. Pearce
Date: Tuesday, March 11, 2008 - 12:50 am

Rogan Dawes <lists@dawes.za.net> wrote:

Given two branches:

	code
	docs

and the code people checkout the "src/" subdirectory and the docs
people checkout the "Documentation/" subdirectory, and they *only*
every work in that subdirectory, things are fine.

Until one day some developer also checks out "Documentation/" and
fixes something in the documentation as part of the same commit
that makes a code change.  The push this to the code branch.

Someday in the future a documentation writer merges the code branch
over to the docs branch, "just keeping it current".

Now there arises a possiblity of a merge conflict in a part of the
tree that you do not have checked out.


If you want to say "don't ever modify stuff outside of your branch's
purpose" then why aren't you just using submodules (one for docs and
one for code) and using a supermodule to tie everything together into
a "release package"?


This is easy enough that if the above problem could be resolved
sufficiently to the git gurus' satisfaction you would be able
to get some advice on how to solve it.  Its not difficult, just
damn annoying.  We already do it (to some extent) with grafts and
shallow clones.

-- 
Shawn.
--
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:
[QUESTION] Selective fetch possible?, Filippo Zangheri, (Mon Mar 10, 3:02 pm)
Re: [QUESTION] Selective fetch possible?, Shawn O. Pearce, (Mon Mar 10, 3:53 pm)
Re: [QUESTION] Selective fetch possible?, Jakub Narebski, (Mon Mar 10, 4:34 pm)
Re: [QUESTION] Selective fetch possible?, Rogan Dawes, (Tue Mar 11, 12:26 am)
Re: [QUESTION] Selective fetch possible?, Shawn O. Pearce, (Tue Mar 11, 12:50 am)
Re: [QUESTION] Selective fetch possible?, Rogan Dawes, (Tue Mar 11, 2:07 am)
Re: [QUESTION] Selective fetch possible?, Filippo Zangheri, (Tue Mar 11, 5:29 am)