Skip to content

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.

License

Notifications You must be signed in to change notification settings

githubapitest/ruby-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Library for Ruby
-----------------------------

Library for using Git in Ruby.

Right now I'm forking calls to the 'git' binary, 
but eventually I'll replace that with either C bindings
to libgit or libgit-thin, or I'll write pure ruby
handlers for at least some of the Git stuff.

See EXAMPLES file for, well, examples.



Git::Object
  - sha
  - type
  - cat_file
  - raw

Git::Commit
  - tree
  - parent 
  - author      # git author
  - author_date
  - committer   # git author
  - committer_date / date
  - message

Git::Tree
  - children
  - blobs/files
  - subtrees/subdirs

Git::Blob << File
  - size
  - permissions

Git::Tag

Git::Hash
  - abbrev/short

Git::Repository
  - heads
  - refs
  - branches

Git::WorkingDirectory 
  - foreach
  - glob # returns Git::Files

Git::File << File
  - log
  - tags

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published