Sha256: f9b211a73d6693d7aaddf29d275a53e54c8b85bde5c299eae001c564f3aab6a4

Contents?: true

Size: 1.52 KB

Versions: 24

Compression:

Stored size: 1.52 KB

Contents

This is a listing of all the places I can find that Grit actually does a
'git' system call.  My goal is to add native Ruby versions of all of them.

Completed
===========================
** lib/grit/blob.rb:36:      @size ||= @repo.git.cat_file({:s => true}, id).chomp.to_i
** lib/grit/blob.rb:43:      @data ||= @repo.git.cat_file({:p => true}, id)
** lib/grit/tree.rb:16:      output = repo.git.ls_tree({}, treeish, *paths)



lib/grit/commit.rb:74:      repo.git.rev_list({}, ref).strip.split("\n").size
lib/grit/commit.rb:92:      output = repo.git.rev_list(actual_options, ref)
lib/grit/commit.rb:94:      output = repo.git.rev_list(actual_options.merge(:all => true))


Next to do
===========================
lib/grit/tag.rb:28:      output = repo.git.for_each_ref(actual_options, "refs/tags")
lib/grit/head.rb:37:      output = repo.git.for_each_ref(actual_options, HEAD_PREFIX)
lib/grit/head.rb:50:        self.new($1, repo.git.rev_parse(options, 'HEAD'))
lib/grit/config.rb:9:      @repo.git.config({}, key, value)
lib/grit/config.rb:40:        @repo.git.config(:list => true).split(/\n/)


May not be fast enough
=============================
lib/grit/blob.rb:58:      data = repo.git.blame({:p => true}, commit, '--', file)


More Difficult
===========================
lib/grit/commit.rb:39:      @id_abbrev ||= @repo.git.rev_parse({:short => true}, self.id).chomp
lib/grit/commit.rb:150:      text = repo.git.diff({:full_index => true}, *paths)
lib/grit/commit.rb:156:        diff = @repo.git.show({:full_index => true, :pretty => 'raw'}, @id)

Version data entries

24 entries across 24 versions & 9 rubygems

Version Path
tekkub-fugit-0.0.6 lib/grit/PURE_TODO
tekkub-fugit-0.0.7 lib/grit/PURE_TODO
trans-grit-2.5.0 PURE_TODO
gitlab-grit-2.5.0 PURE_TODO
gitlab-grit-1.0.0 PURE_TODO
grit-2.5.0 PURE_TODO
jugyo-grit-2.4.2 PURE_TODO
rhomobile-grit-2.4.2 PURE_TODO
rhomobile-grit-2.4.1 PURE_TODO
grit-2.4.1 PURE_TODO
grit-2.4.0 PURE_TODO
schleyfox-grit-2.3.0.1 PURE_TODO
schleyfox-grit-2.3.0 PURE_TODO
madrox-0.2.0 vendor/grit/PURE_TODO
madrox-0.1.1 vendor/grit/PURE_TODO
madrox-0.1.0 vendor/grit/PURE_TODO
grit-2.3.0 PURE_TODO
grit-2.2.0 PURE_TODO
grit-2.1.0 PURE_TODO
ginst-2009.12.8 vendor/plugins/grit/PURE_TODO