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/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/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, Head, Index, InvalidGitRepositoryError, InvalidObjectType, Merge, NoSuchPathError, Note, Ref, Remote, Repo, Status, Submodule, Tag, Tree
Constant Summary collapse
- VERSION =
'2.4.2'
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
56 57 58 |
# File 'lib/grit.rb', line 56 def debug @debug end |
.logger ⇒ Object
The standard logger
for debugging git calls - this defaults to a plain STDOUT logger
61 62 63 |
# File 'lib/grit.rb', line 61 def logger @logger end |
.no_quote ⇒ Object
Returns the value of attribute no_quote.
58 59 60 |
# File 'lib/grit.rb', line 58 def no_quote @no_quote end |
.use_git_ruby ⇒ Object
Returns the value of attribute use_git_ruby.
57 58 59 |
# File 'lib/grit.rb', line 57 def use_git_ruby @use_git_ruby end |
Class Method Details
.log(str) ⇒ Object
62 63 64 |
# File 'lib/grit.rb', line 62 def log(str) logger.debug { str } end |
.version ⇒ Object
72 73 74 |
# File 'lib/grit.rb', line 72 def self.version VERSION end |