diff --git a/src/git-repository-async.js b/src/git-repository-async.js index 131b1b51c..705f98870 100644 --- a/src/git-repository-async.js +++ b/src/git-repository-async.js @@ -412,10 +412,10 @@ export default class GitRepositoryAsync { options.pathspec = _path return Git.Diff.treeToWorkdir(repo, tree, options) }) - .then(diff => diff.patches()) // :: Array - .then(patches => Promise.all(patches.map(p => p.hunks()))) // :: Array> - .then(hunks => Promise.all(_.flatten(hunks).map(h => h.lines()))) // :: Array> - .then(lines => { + .then(diff => diff.patches()) + .then(patches => Promise.all(patches.map(p => p.hunks()))) // patches :: Array + .then(hunks => Promise.all(_.flatten(hunks).map(h => h.lines()))) // hunks :: Array> + .then(lines => { // lines :: Array> const stats = {added: 0, deleted: 0} for (const line of _.flatten(lines)) { const origin = line.origin()