Comparing version 0.6.2 to 0.7.0
@@ -16,1 +16,3 @@ # API | ||
{%= _.doc("./docs/push.md") %} | ||
{%= _.doc("./docs/commits.md") %} |
@@ -11,3 +11,4 @@ var getOneLineLog = require('./src/get-one-line-log'); | ||
commit: require('./src/commit'), | ||
push: require('./src/push') | ||
push: require('./src/push'), | ||
commits: require('./src/commits') | ||
}; | ||
@@ -14,0 +15,0 @@ |
{ | ||
"name": "ggit", | ||
"description": "Local promise-returning git command wrappers", | ||
"version": "0.6.2", | ||
"version": "0.7.0", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
@@ -14,24 +14,25 @@ "bin": { | ||
"dependencies": { | ||
"check-more-types": "1.1.1", | ||
"chdir-promise": "0.2.1", | ||
"check-more-types": "1.3.0", | ||
"check-types": "1.4.0", | ||
"cli-table": "0.3.1", | ||
"colors": "1.0.3", | ||
"commander": "2.5.1", | ||
"commander": "2.6.0", | ||
"d3-helpers": "0.3.0", | ||
"glob": "4.3.2", | ||
"glob": "4.3.5", | ||
"lazy-ass": "0.5.3", | ||
"lodash": "2.4.1", | ||
"moment": "2.8.4", | ||
"lodash": "3.1.0", | ||
"moment": "2.9.0", | ||
"optimist": "0.6.1", | ||
"q": "2.0.2", | ||
"quote": "0.2.2", | ||
"ramda": "0.8.0" | ||
"q": "2.0.3", | ||
"quote": "0.4.0", | ||
"ramda": "0.9.1" | ||
}, | ||
"devDependencies": { | ||
"grunt": "0.4.5", | ||
"grunt-bump": "0.0.16", | ||
"grunt-complexity": "0.2.0", | ||
"grunt-contrib-jshint": "0.10.0", | ||
"grunt-deps-ok": "0.5.1", | ||
"grunt-filenames": "0.3.1", | ||
"grunt-bump": "0.1.0", | ||
"grunt-complexity": "0.3.0", | ||
"grunt-contrib-jshint": "0.11.0", | ||
"grunt-deps-ok": "0.5.2", | ||
"grunt-filenames": "0.4.0", | ||
"grunt-jsonlint": "1.0.4", | ||
@@ -38,0 +39,0 @@ "grunt-nice-package": "0.9.2", |
@@ -1,2 +0,2 @@ | ||
# ggit v0.6.2 | ||
# ggit v0.7.0 | ||
@@ -131,4 +131,27 @@ > Local promise-returning git command wrappers | ||
### commits | ||
Returns list of commits in the given folder as a list or object | ||
```js | ||
// commits.all - gets all commits | ||
var commits = require('ggit').commits; | ||
commits.all(gitRepoFolder) | ||
.then(R.take(2)) | ||
.then(console.table) | ||
.done(); | ||
// commits.byId - transforms list of commits into object | ||
// where keys = ids, values = messages | ||
// For example to get an object with 2 commit ids as keys | ||
commits.all(gitRepoFolder) | ||
.then(R.take(2)) | ||
.then(commits.byId) | ||
.then(console.log) | ||
.done(); | ||
``` | ||
## Development | ||
@@ -135,0 +158,0 @@ |
@@ -1,1 +0,46 @@ | ||
{} | ||
{ | ||
"/Users/gleb/git/ggit/test/commits.js": { | ||
"name": "/Users/gleb/git/ggit/test/commits.js", | ||
"coverage": 100 | ||
}, | ||
"/Users/gleb/git/ggit/index.js": { | ||
"name": "/Users/gleb/git/ggit/index.js", | ||
"coverage": 50 | ||
}, | ||
"/Users/gleb/git/ggit/src/get-one-line-log.js": { | ||
"name": "/Users/gleb/git/ggit/src/get-one-line-log.js", | ||
"coverage": 89 | ||
}, | ||
"/Users/gleb/git/ggit/src/exec.js": { | ||
"name": "/Users/gleb/git/ggit/src/exec.js", | ||
"coverage": 63 | ||
}, | ||
"/Users/gleb/git/ggit/src/clone-repo.js": { | ||
"name": "/Users/gleb/git/ggit/src/clone-repo.js", | ||
"coverage": 42 | ||
}, | ||
"/Users/gleb/git/ggit/src/blame.js": { | ||
"name": "/Users/gleb/git/ggit/src/blame.js", | ||
"coverage": 29 | ||
}, | ||
"/Users/gleb/git/ggit/src/is-file-tracked.js": { | ||
"name": "/Users/gleb/git/ggit/src/is-file-tracked.js", | ||
"coverage": 64 | ||
}, | ||
"/Users/gleb/git/ggit/src/has-changes.js": { | ||
"name": "/Users/gleb/git/ggit/src/has-changes.js", | ||
"coverage": 71 | ||
}, | ||
"/Users/gleb/git/ggit/src/commit.js": { | ||
"name": "/Users/gleb/git/ggit/src/commit.js", | ||
"coverage": 46 | ||
}, | ||
"/Users/gleb/git/ggit/src/push.js": { | ||
"name": "/Users/gleb/git/ggit/src/push.js", | ||
"coverage": 67 | ||
}, | ||
"/Users/gleb/git/ggit/src/commits.js": { | ||
"name": "/Users/gleb/git/ggit/src/commits.js", | ||
"coverage": 100 | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
476272
81
1389
192
15
5
+ Addedchdir-promise@0.2.1
+ Addedasap@2.0.6(transitive)
+ Addedchdir-promise@0.2.1(transitive)
+ Addedcheck-more-types@1.1.01.3.0(transitive)
+ Addedcommander@2.6.0(transitive)
+ Addedglob@4.3.5(transitive)
+ Addedlodash@3.1.0(transitive)
+ Addedmoment@2.9.0(transitive)
+ Addedq@1.1.22.0.3(transitive)
+ Addedquote@0.4.0(transitive)
+ Addedramda@0.9.1(transitive)
+ Addedspots@0.3.0(transitive)
- Removedasap@1.0.0(transitive)
- Removedcheck-more-types@1.1.1(transitive)
- Removedcollections@2.0.3(transitive)
- Removedcommander@2.5.1(transitive)
- Removedglob@4.3.2(transitive)
- Removedlodash@2.4.1(transitive)
- Removedmini-map@1.0.0(transitive)
- Removedmoment@2.8.4(transitive)
- Removedpop-arrayify@1.0.0(transitive)
- Removedpop-clear@1.0.0(transitive)
- Removedpop-clone@1.0.1(transitive)
- Removedpop-compare@1.0.0(transitive)
- Removedpop-equals@1.0.0(transitive)
- Removedpop-has@1.0.0(transitive)
- Removedpop-hash@1.0.1(transitive)
- Removedpop-observe@2.0.2(transitive)
- Removedpop-swap@1.0.0(transitive)
- Removedpop-zip@1.0.0(transitive)
- Removedq@2.0.2(transitive)
- Removedquote@0.2.2(transitive)
- Removedramda@0.8.0(transitive)
- Removedregexp-escape@0.0.1(transitive)
Updatedcheck-more-types@1.3.0
Updatedcommander@2.6.0
Updatedglob@4.3.5
Updatedlodash@3.1.0
Updatedmoment@2.9.0
Updatedq@2.0.3
Updatedquote@0.4.0
Updatedramda@0.9.1