From a75bda9b38af83e747cb5cccbdfa8c006ca3670d Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 15 Nov 2014 19:44:16 -0500 Subject: [PATCH] Fetch only 1 parent for getDiff --- lib/commit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commit.js b/lib/commit.js index 710902bc8..63e7d7257 100644 --- a/lib/commit.js +++ b/lib/commit.js @@ -175,7 +175,7 @@ Commit.prototype.parents = function() { Commit.prototype.getDiff = function(callback) { var commit = this; - return commit.getParents().then(function(parents) { + return commit.getParents(1).then(function(parents) { var diffs = parents.map(function(parent) { return parent.getTree().then(function(parentTree) { return commit.getTree().then(function(thisTree) {