peter / git_plugins
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
6fd3023
git_plugins / README
| 28db8d4f » | peter | 2008-09-23 | 1 | GitPlugins | |
| 2 | ========== | ||||
| 3 | |||||
| 71dfc9ff » | peter | 2008-09-24 | 4 | This is a simple plugin has a set of rake tasks to keep track of Rails plugins that are kept in Git repositories. | |
| 28db8d4f » | peter | 2008-09-23 | 5 | The idea is to provide at least some of the functionality of svn externals. | |
| 6 | |||||
| 7 | I keep my Rails application in Git and I develop open source Rails plugins that each live in their | ||||
| 8 | own repositories. This plugin provides a way to keep track of those plugins and: | ||||
| 9 | |||||
| 10 | 1) Bootstrap your Rails app by cloning all the Git plugins needed under vendor/plugins. | ||||
| 11 | 2) Add all git plugins to .gitignore. | ||||
| 12 | 3) Be able a git status or git pull on all Git plugins. | ||||
| 13 | |||||
| 14 | As an alternative to using this plugin or some other approach to nested Git repositories you | ||||
| 15 | might want to check out Git submodules and the git-rake rake tasks for managing them: | ||||
| 16 | |||||
| 17 | http://github.com/mdalessio/git-rake/tree/master | ||||
| 18 | |||||
| 19 | Please note that Git submodules don't work like svn externals though and as it says in the git-rake README: | ||||
| 20 | |||||
| 21 | "git submodules are inherently not well-suited for frequently updated projects" | ||||
| 22 | |||||
| 23 | For more discussion and alternatives, check out these links: | ||||
| 24 | |||||
| 25 | http://panthersoftware.com/articles/view/3/svn-s-svn-externals-to-git-s-submodule-for-rails-plugins | ||||
| 26 | http://effectif.com/2008/4/24/easy-git-svn-for-rails | ||||
| 27 | |||||
| 28 | Example | ||||
| 29 | ======= | ||||
| 30 | |||||
| 71dfc9ff » | peter | 2008-09-24 | 31 | Add the file config/git_plugins.rb: | |
| 28db8d4f » | peter | 2008-09-23 | 32 | ||
| 33 | GitPlugins.configure do |g| | ||||
| 34 | g.plugin :name => "server_config", :url => "git://github.com/peter/server_config.git" | ||||
| 35 | end | ||||
| 36 | |||||
| 37 | Checkout the plugin and add it to .gitignore: | ||||
| 38 | |||||
| 39 | rake git:plugins:checkout | ||||
| 40 | |||||
| 41 | Check status and update your plugins: | ||||
| 42 | |||||
| 43 | rake git:plugins:status | ||||
| 44 | rake git:plugins:pull | ||||
| 45 | |||||
| 46 | Copyright (c) 2008 Peter Marklund, released under the MIT license | ||||
