Skip to content

Commit 04f481c

Browse files
authored
Merge pull request nodegit#1292 from cdosborn/patch-1
Fix incorrect api usage, not Time rather TIME
2 parents fc2f331 + aae8f83 commit 04f481c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/walk-history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
1010
})
1111
.then(function(firstCommitOnMaster){
1212
// History returns an event.
13-
var history = firstCommitOnMaster.history(nodegit.Revwalk.SORT.Time);
13+
var history = firstCommitOnMaster.history(nodegit.Revwalk.SORT.TIME);
1414

1515
// History emits "commit" event for each commit in the branch's history
1616
history.on("commit", function(commit) {

0 commit comments

Comments
 (0)