Class Grit::Git
In: lib/grit/git.rb
Parent: Object

Methods

method_missing   new   run   sh   transform_options   wild_sh  

Included Modules

GitRuby

Classes and Modules

Class Grit::Git::GitTimeout

Attributes

bytes_read  [RW] 
git_binary  [RW] 
git_dir  [RW] 
git_timeout  [RW] 

Public Class methods

Public Instance methods

Run the given git command with the specified arguments and return the result as a String

  +cmd+ is the command
  +options+ is a hash of Ruby style options
  +args+ is the list of arguments (to be joined by spaces)

Examples

  git.rev_list({:max_count => 10, :header => true}, "master")

Returns String

Transform Ruby style options into git command line options

  +options+ is a hash of Ruby style options

Returns String[]

  e.g. ["--max-count=10", "--header"]

[Validate]