Skip to content

Commit

Permalink
Merge pull request #1733 from igncp/update-difflist-to-diff
Browse files Browse the repository at this point in the history
Remove DiffList
  • Loading branch information
tbranyen committed Jan 19, 2020
2 parents b111960 + ffcd894 commit 06489c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/tree.js
Expand Up @@ -34,7 +34,7 @@ Tree.prototype.builder = function() {
* @async
* @param {Tree} tree to diff against
* @param {Function} callback
* @return {DiffList}
* @return {Diff}
*/
Tree.prototype.diff = function(tree, callback) {
return this.diffWithOptions(tree, null, callback);
Expand All @@ -46,7 +46,7 @@ Tree.prototype.diff = function(tree, callback) {
* @param {Tree} tree to diff against
* @param {Object} options
* @param {Function} callback
* @return {DiffList}
* @return {Diff}
*/
Tree.prototype.diffWithOptions = function(tree, options, callback) {
return Diff.treeToTree(this.repo, tree, this, options).then(function(diff) {
Expand Down
2 changes: 1 addition & 1 deletion test/tests/diff.js
Expand Up @@ -112,7 +112,7 @@ describe("Diff", function() {
});
});

it("can walk a DiffList", function() {
it("can walk an Array<Diff>", function() {
return this.diff[0].patches()
.then(function(patches) {
var patch = patches[0];
Expand Down

0 comments on commit 06489c7

Please sign in to comment.