RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Simple Git Externals

Create config file, externals unfreeze, commit to external, externals freeze, commit to parent project. Check out the blog entry or GitHub.

Comments

Very interesting, and promising. Two things:

  1. If you forget to unfreeze before you make changes, then any changes you have made are blown away when you do unfreeze. This is rather unfriendly – can you look for modified files before unfreezing, and abort if there are changes?

  2. If you’ve made one or more commits to the external, then you have to commit to the parent project as well, which requires both staging the files and writing a commit message. Is there any way to pull that information from the external – some sort of squashed commit that prepopulates the index and prepares the commit message?

1 is a fairly easy fix. I originally thought that unfreezing should restore the external to its pre-frozen state, but it seems most would prefer that it doesn’t. This update should go out tonight. 2 is a bit tougher, however I agree it would be a great feature. Please watch this project on GitHub to get it more attention (and more contributors).

Thanks for the suggestions.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in