Skip to content

Commit 9d45b9a

Browse files
committed
changed references to entry.filename() to entry.name()
1 parent c3a89ad commit 9d45b9a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/clone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fse.remove(path).then(function() {
3131
return entry.getBlob();
3232
})
3333
.done(function(blob) {
34-
console.log(entry.filename(), entry.sha(), blob.rawsize() + "b");
34+
console.log(entry.name(), entry.sha(), blob.rawsize() + "b");
3535
console.log("========================================================\n\n");
3636
var firstTenLines = blob.toString().split("\n").slice(0, 10).join("\n");
3737
console.log(firstTenLines);

examples/general.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
220220
if (entry.isDirectory()) {
221221
promises.push(entry.getTree().then(dfs));
222222
} else if (entry.isFile()) {
223-
console.log("Tree Entry:", entry.filename());
223+
console.log("Tree Entry:", entry.name());
224224
}
225225
});
226226

examples/read-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
1616
return _entry.getBlob();
1717
})
1818
.then(function(blob) {
19-
console.log(_entry.filename(), _entry.sha(), blob.rawsize() + "b");
19+
console.log(_entry.name(), _entry.sha(), blob.rawsize() + "b");
2020
console.log("========================================================\n\n");
2121
var firstTenLines = blob.toString().split("\n").slice(0, 10).join("\n");
2222
console.log(firstTenLines);

0 commit comments

Comments
 (0)