We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b6afb commit f263512Copy full SHA for f263512
1 file changed
examples/diff-commits.js
@@ -25,7 +25,8 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
25
patch.hunks().then(function(hunks) {
26
hunks.forEach(function(hunk) {
27
hunk.lines().then(function(lines) {
28
- console.log("diff", patch.oldFile().path(), patch.newFile().path());
+ console.log("diff", patch.oldFile().path(),
29
+ patch.newFile().path());
30
console.log(hunk.header().trim());
31
lines.forEach(function(line) {
32
console.log(String.fromCharCode(line.origin()) +
0 commit comments