Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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