[Camps-users] Patch to introduce support for alternate Git branch specification

Ethan Rowe ethan at endpoint.com
Wed Sep 23 19:01:04 UTC 2009


All,

I've now encountered a few situations in which I need multiple camp
types for parallel lines of development on a single project.  All such
camp types would work with alternate branches on a single repository,
which currently has to be handled manually (which is a drag).

Please see the following at my github fork; it introduces a new
"git_branch" configuration option which allows the camp type to specify
a branch to use rather than "master" (or whatever the source
repository's active branch may be); when branch is specified, a
vcs_checkout() call for Git will follow up the initial clone with a
git-checkout call that makes a tracking branch and checks it out.

Full disclosure: I haven't tested it exhaustively; it appears to work
without git_branch being specified, and with it being specified in the
simple case.

http://github.com/ethanrowe/camps/commit/de9271475690843c35696b07f1cc6ba8092b4e03

Thanks.
- Ethan
-- 
Ethan Rowe
End Point Corporation
ethan at endpoint.com


More information about the Camps-users mailing list