Well, I just got the answer I needed: how to clone just the tip of a remote Git repository ? Here’s how:

Sometimes you just want to distribute the source code without its history, and that’s where git-archive comes in.

git archive <tree-ish> > my_new_archive.tar

Kate Rhodes in Getting just the tip of a Git repo

I think I might use this in Piston. I’m not too sure yet, as I haven’t implemented piston-git, but it looks like a promising candidate.

Rails deprecations are a nice thing. They allow us to know what transition path to use, instead of being left in the dark. With deprecated functionality being removed from Rails, it’s important to know these things.

If you have a decent test coverage, you might want to add this to your config/environments/test.rb:

config/environments/test.rb

1 class DeprecatedFunctionality < SyntaxError; end
2 ActiveSupport::Deprecation.behavior = Proc.new {|message, callstack|
3 raise DeprecatedFunctionality, message
4 }

This will raise an exception instead of simply reporting the warning to the console. If you have CruiseControl.rb installed, the messages will show up as errors there too. This is a quick and easy way to force yourself to actually use the new functionality.

Search

Your Host

A picture of me

I am François Beausoleil, a Ruby on Rails and Scala developer. During the day, I work on Seevibes, a platform to measure social interactions related to TV shows. At night, I am interested many things. Read my biography.

Top Tags

Books I read and recommend

Links

Projects I work on

Projects I worked on