Module: Grit

Defined in:
lib/grit/git-ruby/internal/file_window.rb,
lib/grit.rb,
lib/grit/git.rb,
lib/grit/ref.rb,
lib/grit/tag.rb,
lib/grit/blob.rb,
lib/grit/diff.rb,
lib/grit/grep.rb,
lib/grit/repo.rb,
lib/grit/tree.rb,
lib/grit/actor.rb,
lib/grit/blame.rb,
lib/grit/index.rb,
lib/grit/merge.rb,
lib/grit/commit.rb,
lib/grit/config.rb,
lib/grit/errors.rb,
lib/grit/status.rb,
lib/grit_ext/tag.rb,
lib/grit/git-ruby.rb,
lib/grit_ext/blob.rb,
lib/grit_ext/diff.rb,
lib/grit_ext/tree.rb,
lib/grit/submodule.rb,
lib/grit_ext/actor.rb,
lib/grit_ext/commit.rb,
lib/grit/commit_stats.rb,
lib/grit/git-ruby/git_object.rb,
lib/grit/git-ruby/repository.rb,
lib/grit/git-ruby/internal/pack.rb,
lib/grit/git-ruby/internal/loose.rb,
lib/grit/git-ruby/internal/raw_object.rb

Overview

converted from the gitrb project

authors:

Matthias Lederhofer <[email protected]>
Simon 'corecode' Schubert <[email protected]>
Scott Chacon <[email protected]>

provides native ruby access to git objects and pack files

Defined Under Namespace

Modules: GitRuby Classes: Actor, Blame, Blob, Commit, CommitStats, Config, Diff, DiffStat, Git, Grep, Head, Index, InvalidGitRepositoryError, InvalidObjectType, Merge, NoSuchPathError, Note, Ref, Remote, Repo, Status, Submodule, Tag, Tree

Constant Summary collapse

VERSION =
File.read(File.expand_path("../../VERSION", __FILE__)).chomp.strip

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.debugObject

Set debug to true to log all git calls and responses



57
58
59
# File 'lib/grit.rb', line 57

def debug
  @debug
end

.loggerObject

The standard logger for debugging git calls - this defaults to a plain STDOUT logger



62
63
64
# File 'lib/grit.rb', line 62

def logger
  @logger
end

.no_quoteObject

Returns the value of attribute no_quote.



59
60
61
# File 'lib/grit.rb', line 59

def no_quote
  @no_quote
end

.use_git_rubyObject

Returns the value of attribute use_git_ruby.



58
59
60
# File 'lib/grit.rb', line 58

def use_git_ruby
  @use_git_ruby
end

Class Method Details

.log(str) ⇒ Object



63
64
65
# File 'lib/grit.rb', line 63

def log(str)
  logger.debug { str }
end

.versionObject



73
74
75
# File 'lib/grit.rb', line 73

def self.version
  VERSION
end