Class Git::Lib
In: lib/git/lib.rb
Parent: Object

Methods

Public Class methods

Public Instance methods

creates an archive file

options

 :format  (zip, tar)
 :prefix
 :remote
 :path

tries to clone the given repo

returns {:repository} (if bare)

        {:working_directory} otherwise

accepts options:

 :remote:: name of remote (rather than 'origin')
 :bare::   no working directory
 :depth::  the number of commits back to pull

TODO - make this work with SSH password or auth_key

returns useful array of raw commit object data

WRITE COMMANDS ##

returns the current version of git, as an Array of Fixnums.

compares the index and the working directory

compares the index and the repository

returns hash

tree-ish
= [[line_no, match], [line_no, match2]]
tree-ish
= [[line_no, match], [line_no, match2]]

READ COMMANDS ##

reads a tree into the current index file

this is documented as such, but seems broken for some reason i‘ll try to get around it some other way later

[Validate]