Unverified Commit 4198db5e authored by Carson Howard's avatar Carson Howard Committed by GitHub

Merge pull request #1326 from rcjsuen/details-te

Fix details-for-tree-entry.js to access fields instead of calling a function
parents 022f5594 c45e978f
......@@ -17,10 +17,10 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
var indexEntry = index.getByPath(treeEntry.path());
// With the index entry we can now view the details for the tree entry
console.log("Entry path: " + indexEntry.path());
console.log("Entry time in seconds: " + indexEntry.mtime().seconds());
console.log("Entry oid: " + indexEntry.id().toString());
console.log("Entry size: " + indexEntry.fileSize());
console.log("Entry path: " + indexEntry.path);
console.log("Entry time in seconds: " + indexEntry.mtime.seconds());
console.log("Entry oid: " + indexEntry.id.toString());
console.log("Entry size: " + indexEntry.fileSize);
});
});
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment