From aae8f83338ed69a28e8c8279e738857b13364841 Mon Sep 17 00:00:00 2001 From: Connor Osborn Date: Fri, 26 May 2017 21:59:57 -0700 Subject: [PATCH] Fix incorrect api usage, not Time rather TIME --- examples/walk-history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/walk-history.js b/examples/walk-history.js index 2e41ce2da..7bdab9fb9 100644 --- a/examples/walk-history.js +++ b/examples/walk-history.js @@ -10,7 +10,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git")) }) .then(function(firstCommitOnMaster){ // History returns an event. - var history = firstCommitOnMaster.history(nodegit.Revwalk.SORT.Time); + var history = firstCommitOnMaster.history(nodegit.Revwalk.SORT.TIME); // History emits "commit" event for each commit in the branch's history history.on("commit", function(commit) {