Skip to content

Commit 659ef40

Browse files
committed
Feedback
1 parent 87a3648 commit 659ef40

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

book/B-embedding-git/sections/libgit2.asc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ commit = repo.lookup(commit_id) # <8>
106106
<7> Rugged (and Libgit2) can optionally update a reference when making a commit.
107107
<8> The return value is the SHA-1 hash of a new commit object, which you can then use to get a `Commit` object.
108108

109-
The Ruby code is pretty clean, but since Libgit2 is doing the heavy lifting, this code will run pretty fast, too.
109+
The Ruby code is nice and clean, but since Libgit2 is doing the heavy lifting, this code will run pretty fast, too.
110110

111111

112112
==== Advanced Functionality
@@ -133,7 +133,7 @@ error = git_odb_backend_mine(&my_backend, repo, …); // <3>
133133
error = git_odb_add_backendodb, my_backend, 1); // <4>
134134
----
135135

136-
_Note that error handling has been elided for this example. You should know better._
136+
_Note that error handling has been left out for this example. You should know better._
137137

138138
<1> Initialize an empty object database (ODB) ``frontend,'' which will act as a handle to the real ODB.
139139
<2> Construct a `git_repository` around the empty ODB.
@@ -142,10 +142,6 @@ _Note that error handling has been elided for this example. You should know bett
142142

143143
// TODO
144144

145-
==== What Libgit2 Can't Do
146-
147-
// TODO
148-
149145
==== Other Bindings
150146

151147
Libgit2 has bindings for many languages.

0 commit comments

Comments
 (0)