| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,7 @@ Tree.prototype.builder = function() { | |||
| 34 | 34 | * @async | |
| 35 | 35 | * @param {Tree} tree to diff against | |
| 36 | 36 | * @param {Function} callback | |
| 37 | - * @return {DiffList} | ||
| 37 | + * @return {Diff} | ||
| 38 | 38 | */ | |
| 39 | 39 | Tree.prototype.diff = function(tree, callback) { | |
| 40 | 40 | return this.diffWithOptions(tree, null, callback); | |
@@ -46,7 +46,7 @@ Tree.prototype.diff = function(tree, callback) { | |||
| 46 | 46 | * @param {Tree} tree to diff against | |
| 47 | 47 | * @param {Object} options | |
| 48 | 48 | * @param {Function} callback | |
| 49 | - * @return {DiffList} | ||
| 49 | + * @return {Diff} | ||
| 50 | 50 | */ | |
| 51 | 51 | Tree.prototype.diffWithOptions = function(tree, options, callback) { | |
| 52 | 52 | return Diff.treeToTree(this.repo, tree, this, options).then(function(diff) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,7 +112,7 @@ describe("Diff", function() { | |||
| 112 | 112 | }); | |
| 113 | 113 | }); | |
| 114 | 114 | ||
| 115 | - it("can walk a DiffList", function() { | ||
| 115 | + it("can walk an Array<Diff>", function() { | ||
| 116 | 116 | return this.diff[0].patches() | |
| 117 | 117 | .then(function(patches) { | |
| 118 | 118 | var patch = patches[0]; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments