Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 36 lines (25 sloc) 1.556 kB
f3a24ae @schacon added a pure-ruby git library and converted the cat_file commands to …
schacon authored
1 This is a listing of all the places I can find that Grit actually does a
2 'git' system call. My goal is to add native Ruby versions of all of them.
3
4 Completed
5 ===========================
6 ** lib/grit/blob.rb:36: @size ||= @repo.git.cat_file({:s => true}, id).chomp.to_i
7 ** lib/grit/blob.rb:43: @data ||= @repo.git.cat_file({:p => true}, id)
b35bf9e @schacon more workin
schacon authored
8 ** lib/grit/tree.rb:16: output = repo.git.ls_tree({}, treeish, *paths)
f3a24ae @schacon added a pure-ruby git library and converted the cat_file commands to …
schacon authored
9
10
28f28c5 @schacon added some simple write ops : add, remove, commit
schacon authored
11
1535929 @schacon bunch of changes
schacon authored
12 lib/grit/commit.rb:74: repo.git.rev_list({}, ref).strip.split("\n").size
13 lib/grit/commit.rb:92: output = repo.git.rev_list(actual_options, ref)
14 lib/grit/commit.rb:94: output = repo.git.rev_list(actual_options.merge(:all => true))
15
16
f3a24ae @schacon added a pure-ruby git library and converted the cat_file commands to …
schacon authored
17 Next to do
18 ===========================
19 lib/grit/tag.rb:28: output = repo.git.for_each_ref(actual_options, "refs/tags")
20 lib/grit/head.rb:37: output = repo.git.for_each_ref(actual_options, HEAD_PREFIX)
21 lib/grit/head.rb:50: self.new($1, repo.git.rev_parse(options, 'HEAD'))
b35bf9e @schacon more workin
schacon authored
22 lib/grit/config.rb:9: @repo.git.config({}, key, value)
23 lib/grit/config.rb:40: @repo.git.config(:list => true).split(/\n/)
f3a24ae @schacon added a pure-ruby git library and converted the cat_file commands to …
schacon authored
24
25
26 May not be fast enough
27 =============================
28 lib/grit/blob.rb:58: data = repo.git.blame({:p => true}, commit, '--', file)
29
30
31 More Difficult
32 ===========================
33 lib/grit/commit.rb:39: @id_abbrev ||= @repo.git.rev_parse({:short => true}, self.id).chomp
34 lib/grit/commit.rb:150: text = repo.git.diff({:full_index => true}, *paths)
35 lib/grit/commit.rb:156: diff = @repo.git.show({:full_index => true, :pretty => 'raw'}, @id)
Something went wrong with that request. Please try again.