[ET Trac] [Einstein Toolkit] #248: Enhance GetComponents functionality when dealing with git branches

Einstein Toolkit trac-noreply at einsteintoolkit.org
Sat Jan 29 11:23:15 CST 2011


#248: Enhance GetComponents functionality when dealing with git branches
----------------------------+-----------------------------------------------
  Reporter:  bmundim        |       Owner:  eric9       
      Type:  enhancement    |      Status:  accepted    
  Priority:  minor          |   Milestone:              
 Component:  GetComponents  |     Version:              
Resolution:                 |    Keywords:  git branches
----------------------------+-----------------------------------------------

Comment (by eric9):

 I am going to propose a slightly more compact syntax. We only need to
 specify the repo once; multiple branches can be separated by a comma.

 # Checkout a few branches:
 !TARGET = $ARR
 !TYPE = git
 !URL =  ssh://path/to/repo
 !REPO_BRANCH = master, stable, experimental  # etc.
 !CHECKOUT =
 arrangement1/thorn1
 arrangement1/thorn2

 This would setup the local repo to track the master, stable, and
 experimental branches, with the master branch being the one initially
 checked out. To default to the stable branch, one would simply swap the
 order of master and stable. In addition, if you really only wanted a
 specific branch (i.e. stable), you could specify stable by itself. Then
 the repo would be cloned with only the stable branch. I imagine this could
 speed up the process somewhat for large git repos.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/248#comment:4>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list