Module: Grit
- Defined in:
- lib/grit/git-ruby/file_index.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/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/git-ruby.rb,
lib/grit/submodule.rb,
lib/grit/commit_stats.rb,
lib/grit/git-ruby/object.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,
lib/grit/git-ruby/internal/file_window.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, Head, Index, InvalidGitRepositoryError, InvalidObjectType, Merge, NoSuchPathError, Note, Ref, Remote, Repo, Status, Submodule, Tag, Tree
Constant Summary collapse
- VERSION =
'2.3.0.1'
Class Attribute Summary collapse
-
.debug ⇒ Object
Set
debug
to true to log all git calls and responses. -
.logger ⇒ Object
The standard
logger
for debugging git calls - this defaults to a plain STDOUT logger. -
.no_quote ⇒ Object
Returns the value of attribute no_quote.
-
.use_git_ruby ⇒ Object
Returns the value of attribute use_git_ruby.
Class Method Summary collapse
Class Attribute Details
.debug ⇒ Object
Set debug
to true to log all git calls and responses
64 65 66 |
# File 'lib/grit.rb', line 64 def debug @debug end |
.logger ⇒ Object
The standard logger
for debugging git calls - this defaults to a plain STDOUT logger
69 70 71 |
# File 'lib/grit.rb', line 69 def logger @logger end |
.no_quote ⇒ Object
Returns the value of attribute no_quote.
66 67 68 |
# File 'lib/grit.rb', line 66 def no_quote @no_quote end |
.use_git_ruby ⇒ Object
Returns the value of attribute use_git_ruby.
65 66 67 |
# File 'lib/grit.rb', line 65 def use_git_ruby @use_git_ruby end |
Class Method Details
.log(str) ⇒ Object
70 71 72 |
# File 'lib/grit.rb', line 70 def log(str) logger.debug { str } end |
.version ⇒ Object
80 81 82 |
# File 'lib/grit.rb', line 80 def self.version VERSION end |