Skip to content

Commit 06489c7

Browse files
authored
Merge pull request #1733 from igncp/update-difflist-to-diff
Remove DiffList
2 parents b111960 + ffcd894 commit 06489c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/tree.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Tree.prototype.builder = function() {
3434
* @async
3535
* @param {Tree} tree to diff against
3636
* @param {Function} callback
37-
* @return {DiffList}
37+
* @return {Diff}
3838
*/
3939
Tree.prototype.diff = function(tree, callback) {
4040
return this.diffWithOptions(tree, null, callback);
@@ -46,7 +46,7 @@ Tree.prototype.diff = function(tree, callback) {
4646
* @param {Tree} tree to diff against
4747
* @param {Object} options
4848
* @param {Function} callback
49-
* @return {DiffList}
49+
* @return {Diff}
5050
*/
5151
Tree.prototype.diffWithOptions = function(tree, options, callback) {
5252
return Diff.treeToTree(this.repo, tree, this, options).then(function(diff) {

test/tests/diff.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe("Diff", function() {
112112
});
113113
});
114114

115-
it("can walk a DiffList", function() {
115+
it("can walk an Array<Diff>", function() {
116116
return this.diff[0].patches()
117117
.then(function(patches) {
118118
var patch = patches[0];

0 commit comments

Comments
 (0)