git.diff of 2 shortened sha1 throws Unable to parse OID - contains invalid characters Error.
var git = require('nodegit-kit');
git.repo('./path/to/gitrepo')
.then(function(repo){
return git.diff(repo, '02d19b33c3', '4b6d5ef594');
})
.then(function(diff){
console.log(diff);
})
.catch(function(error){
console.log(error);
})