Skip to content

Commit 90572c6

Browse files
Fix typos and confusing variable names.
1 parent 5151599 commit 90572c6

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

ext/rugged/rugged_odb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static VALUE rb_git_odb_new(VALUE klass) {
4949
* Create a new object database with the default filesystem
5050
* backends.
5151
*
52-
* `dir` needs to boint to the objects folder to be used
52+
* `dir` needs to point to the objects folder to be used
5353
* by the filesystem backends.
5454
*/
5555
static VALUE rb_git_odb_open(VALUE klass, VALUE rb_path) {
@@ -62,9 +62,9 @@ static VALUE rb_git_odb_open(VALUE klass, VALUE rb_path) {
6262

6363
/*
6464
* call-seq:
65-
* odb.add_backend(backend) -> odb
65+
* odb.add_backend(backend, priority) -> odb
6666
*
67-
* Set the backend to be used by the reference db.
67+
* Add a backend to be used by the object db.
6868
*
6969
* A backend can only be assigned once, and becomes unusable from that
7070
* point on. Trying to assign a backend a second time will raise an

test/odb_test.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,39 @@ def setup
66
end
77

88
def test_new
9-
refdb = Rugged::Odb.new()
10-
assert_instance_of Rugged::Odb, refdb
9+
odb = Rugged::Odb.new()
10+
assert_instance_of Rugged::Odb, odb
1111
end
1212

1313
def test_add_backend
14-
refdb = Rugged::Odb.new()
15-
refdb.add_backend(Rugged::Odb::Backend::Loose.new(File.join(@repo.path, "objects"), -1, 0, 0, 0), 1)
14+
odb = Rugged::Odb.new()
15+
odb.add_backend(Rugged::Odb::Backend::Loose.new(File.join(@repo.path, "objects"), -1, 0, 0, 0), 1)
1616
end
1717

1818
def test_each_loose
19-
refdb = Rugged::Odb.new()
20-
refdb.add_backend(Rugged::Odb::Backend::Loose.new(File.join(@repo.path, "objects"), -1, 0, 0, 0), 1)
19+
odb = Rugged::Odb.new()
20+
odb.add_backend(Rugged::Odb::Backend::Loose.new(File.join(@repo.path, "objects"), -1, 0, 0, 0), 1)
2121

2222
ids = []
23-
refdb.each { |id| ids << id }
23+
odb.each { |id| ids << id }
2424
assert_equal 31, ids.length
2525
end
2626

2727
def test_each_pack
28-
refdb = Rugged::Odb.new()
29-
refdb.add_backend(Rugged::Odb::Backend::Pack.new(File.join(@repo.path, "objects")), 1)
28+
odb = Rugged::Odb.new()
29+
odb.add_backend(Rugged::Odb::Backend::Pack.new(File.join(@repo.path, "objects")), 1)
3030

3131
ids = []
32-
refdb.each { |id| ids << id }
32+
odb.each { |id| ids << id }
3333
assert_equal 6, ids.length
3434
end
3535

3636
def test_each_one_pack
37-
refdb = Rugged::Odb.new()
38-
refdb.add_backend(Rugged::Odb::Backend::OnePack.new(File.join(@repo.path, "objects", "pack", "pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx")), 1)
37+
odb = Rugged::Odb.new()
38+
odb.add_backend(Rugged::Odb::Backend::OnePack.new(File.join(@repo.path, "objects", "pack", "pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx")), 1)
3939

4040
ids = []
41-
refdb.each { |id| ids << id }
41+
odb.each { |id| ids << id }
4242
assert_equal 6, ids.length
4343
end
4444
end

0 commit comments

Comments
 (0)