Skip to content

Commit

Permalink
changed references to entry.filename() to entry.name()
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisroling committed Jun 21, 2016
1 parent c3a89ad commit 9d45b9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fse.remove(path).then(function() {
return entry.getBlob();
})
.done(function(blob) {
console.log(entry.filename(), entry.sha(), blob.rawsize() + "b");
console.log(entry.name(), entry.sha(), blob.rawsize() + "b");
console.log("========================================================\n\n");
var firstTenLines = blob.toString().split("\n").slice(0, 10).join("\n");
console.log(firstTenLines);
Expand Down
2 changes: 1 addition & 1 deletion examples/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
if (entry.isDirectory()) {
promises.push(entry.getTree().then(dfs));
} else if (entry.isFile()) {
console.log("Tree Entry:", entry.filename());
console.log("Tree Entry:", entry.name());
}
});

Expand Down
2 changes: 1 addition & 1 deletion examples/read-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
return _entry.getBlob();
})
.then(function(blob) {
console.log(_entry.filename(), _entry.sha(), blob.rawsize() + "b");
console.log(_entry.name(), _entry.sha(), blob.rawsize() + "b");
console.log("========================================================\n\n");
var firstTenLines = blob.toString().split("\n").slice(0, 10).join("\n");
console.log(firstTenLines);
Expand Down

0 comments on commit 9d45b9a

Please sign in to comment.