Skip to content

Commit 099ecab

Browse files
author
Kyle Smith
committed
Use diff options even if the commit has no parent
1 parent 75e508b commit 099ecab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Commit.prototype.getDiffWithOptions = function(options, callback) {
197197
});
198198
});
199199
} else {
200-
diffs = [thisTree.diff(null)];
200+
diffs = [thisTree.diffWithOptions(null, options)];
201201
}
202202

203203
return Promise.all(diffs);

0 commit comments

Comments
 (0)