CARVIEW |
Every repository with this icon (

Every repository with this icon (

Run the following if you haven't already:
gem sources -a https://gems.github.com
Install the gem(s):
sudo gem install schacon-git
Description: | Ruby/Git is a Ruby library that can be used to create, read and manipulate Git repositories by wrapping system calls to the git binary. |
Homepage: | https://jointheconversation.org/rubygit/ |
Clone URL: |
git://github.com/schacon/ruby-git.git
Give this clone URL to anyone.
git clone git://github.com/schacon/ruby-git.git
|
Comments for schacon's ruby-git


hmm ok. I just tested it, eval seems to be no problem because git properly escapes quotes etc. But using eval to remove escape sequences just does not feel right. Maybe there’s a better way to do it.

Hey, the reason I added the eval is because git returns a slash encoded string whereas Dir.glob, it appears, deals directly with the international characters, and that will fail during the comparison for finding untracked files. E.g.
>> "Euge\314\201nie Eckler.jpg" == "Eugénie Eckler.jpg"
=> false
<pre> </code>

eval is the wrong way to do this. That introduces security problems. Why not simply remove the first and last character?

eval is evil. This is the wrong way to do this

Hey, I’m not sure where the best place to make this comment is, but when retrieving the git status of all the files, it seems that this code here: https://github.com/schacon/ruby-git/blob/076df64623e0b0627457671f2e921ab2e15f3c0e/lib/git/status.rb#L85-90 that finds all the untracked files inadvertently selects all the files that are being ignored as well.

Woot!

I have to second that, seems sort of random d-:

Um… why exactly did you do this?

k – this is fixed now, thanks both of you.

d’oh – thanks hectoregm, I got it mixed up with one of my other projects. Thanks.

Uhm. Could you enable the GitHub rubygem building feature? I spent 10 minutes trying to figure out why I was getting `ERROR: could not find schacon-ruby-git locally or in a repository`, hehe (-: