But I _do_ work with it! I just don't need to "checkout" it! Example:
git -p cat-file -p todo:TODO
(How about making git-cat be a short cuut to "git -p cat-file -p"?)
You'd just use alternates for that.
But as Linus mentioned in another email, you mostly can use the _same_
working directory. If you want to work on another branch, which is not all
that different from the current branch (say, you have a bug fix branch on
top of an upstream branch), you just _switch_ to it. Git recognizes those
files which are changed, and updates only these. Therefore, if you have
something like a Makefile system to build the project, you actually save
(compile) time as compared to the multiple-checkout scenario.
I use this system a lot, since I maintain a few bugfixes for a few
projects until the bugfixes are applied upstream. BTW the
multiple-branches-in-one-working-directory workflow was propagated by Jeff
a long time ago, and it really changed my way of working. Thanks, Jeff!
Ciao,
Dscho
-
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