
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
atom-libgit2-log-utils
Advanced tools
Simple utility functions for fetching git history using libgit2 built for the Atom editor
Simple utility functions for fetching git history using nodegit (libgit2) built for Atom.
This package wraps the libgit2-log-utils package to work in the Atom editor environment. See libgit2-log-utils for tests and actual source.
npm install atom-libgit2-log-utils
var gitLogUtils = require('atom-libgit2-log-utils');
gitLogUtils.getCommitHistory("myPath/maybeMyFile")
.then(function(history) {
return console.log(JSON.stringify(history, null, 2));
})
.catch(function(error) {
return console.error(error);
});
...will produce...
[
{
"id": "233b26b3a1e212e50693e2e41f2252afa7ebf16d",
"author": "Bee",
"authorDate": 1461978358000,
"message": "output linesAdded and linesDeleted for each file",
"body": "",
"hash": "233b26b3a1e212e50693e2e41f2252afa7ebf16d",
"linesAdded": 35,
"linesDeleted": 15,
"files": [
{
"path": "package.json",
"linesAdded": 3,
"linesDeleted": 1
},
{
"path": "src/libgit2-log-utils.coffee",
"linesAdded": 31,
"linesDeleted": 13
},
{
"path": "test/scripts/getLogJson.coffee",
"linesAdded": 1,
"linesDeleted": 1
}
]
},
{
"id": "more like the above ..."
}
]
The getCommitHistory() method will accept a file or directory and can also handle absolute (full path) path specifications.
0.3.0 (2016-05-122)
Split from branch of libgit2-log-utils to a wapper package in separate repo.
FAQs
Simple utility functions for fetching git history using libgit2 built for the Atom editor
The npm package atom-libgit2-log-utils receives a total of 1 weekly downloads. As such, atom-libgit2-log-utils popularity was classified as not popular.
We found that atom-libgit2-log-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.