winton / externals

Quickly freeze and unfreeze external git dependencies

This URL has Read+Write access

winton (author)
Thu May 28 17:27:58 -0700 2009
commit  f7713c399ba7001183f5fbec1f8b1bedcac1e98a
tree    393fe57adf1f42e4d0705dc346af466c0b594c71
parent  1d2525e1ae53002041d5ba87426b0e8a1b52e2b3
externals / README.markdown
100644 55 lines (39 sloc) 1.046 kb

Externals

Quickly freeze and unfreeze external git dependencies.

Installation

sudo gem install winton-externals

Configuration

Create config/externals.yml:

acts_as_archive:
  repo: git://github.com/winton/acts_as_archive.git
  path: vendor/plugins
rails:
  repo: git://github.com/rails/rails.git
  path: vendor

Freeze or unfreeze

You can run either of these for the first time, depending on what you want:

externals freeze
externals unfreeze

If you only want to freeze one of the items in config/externals.yml

externals freeze acts_as_archive
externals unfreeze acts_as_archive

The usual flow is to unfreeze, commit to the external, freeze, and commit to the parent project.

Your .git directories will be zipped and stored in /tmp when frozen, and moved back to the external when unfrozen.

Are my externals frozen?

When you want to know the status of your externals:

externals status