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!

v is for versioned - a new Git library

After working with grit I started writing my own git library named “v” with further design improvements in mind.. [more inside]

Comments

  • I want the IO heavy operations to be run in a seperate thread.
  • I want an easy way to reimplement the operations as pure ruby version. An operation has a method run(environment) called by the worker. This method currently calls exec(environment) which runs the operation as external command.
  • I want something useful returned after running a git operation.

Examples: $ git clone git://github.com/boof/v.git $ mkdir example; cd example; touch example $ ruby -I../v/lib -rubygems -rv -e "V.git { init; add 'example'; p commit('Committed the example...') }"

You can use the rubyfied git ops almost 1:1. There is even more magic in auto_commit.rb. v is still in its early stages, but you can check it out at http://github.com/boof/v.

Florian Aßmann, Fork Unstable Media

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